Comments on: Remove fbclid Parameter from GA Reports https://mixedanalytics.com/blog/remove-fbclid-from-ga-reports/ APIs, Sheets, and Analytics Thu, 25 Feb 2021 08:42:42 +0000 hourly 1 https://wordpress.org/?v=6.5.5 By: Ana https://mixedanalytics.com/blog/remove-fbclid-from-ga-reports/#comment-19360 Sat, 19 Sep 2020 16:27:38 +0000 https://mixedanalytics.com/?p=7780#comment-19360 In reply to Prasenjit.

Nice solution, thanks for sharing! I And your method should work for any analytics or logging system, not just GA, and will prevent users from loading non-cached versions of the page. Should also improve user privacy slightly (though on the flip side, could harm attribution tracking if you're running Facebook ads).

]]>
By: Prasenjit https://mixedanalytics.com/blog/remove-fbclid-from-ga-reports/#comment-19356 Sat, 19 Sep 2020 12:39:18 +0000 https://mixedanalytics.com/?p=7780#comment-19356 Hi All,
There is another way of removing the “fbclid” from the URL if you have the backend access. Just put these two lines in the .htaccess files:

RewriteCond %{QUERY_STRING} (^|&)fbclid=.*($|&)
RewriteRule . https://www.edukolkata.com%{REQUEST_URI}? [R=301,L]

The good thing is that it will keep the URL clean. I have used this at my site and it works like a charm:

https://www.edukolkata.com/course/list?fbclid=xxxxxxx_xxxxx-xxxxx

Thanks
Prasenjit

]]>
By: JK Baseer https://mixedanalytics.com/blog/remove-fbclid-from-ga-reports/#comment-15037 Fri, 27 Mar 2020 15:17:22 +0000 https://mixedanalytics.com/?p=7780#comment-15037 In reply to Ana.

Thanks for the clarification mate!

]]>
By: Ana https://mixedanalytics.com/blog/remove-fbclid-from-ga-reports/#comment-15036 Fri, 27 Mar 2020 15:04:49 +0000 https://mixedanalytics.com/?p=7780#comment-15036 In reply to JK Baseer.

There should be a way to do this in GTM with a Javascript variable that strips out the query string before sending it to GA. However, this would mean delaying the page view tag slightly until the script completes, and seems quite error-prone, like you might inadvertently strip out the wrong parameters at some point. So I'd stick to the GA query string exclusion method, inconvenient as it is.

]]>
By: JK Baseer https://mixedanalytics.com/blog/remove-fbclid-from-ga-reports/#comment-15022 Fri, 27 Mar 2020 07:14:26 +0000 https://mixedanalytics.com/?p=7780#comment-15022 Thanks Man! Quick fix. Got a question: Will there be a way to avoid this across account level or any GTM method that we can setup for the GA tag not to take up this sort of FBCLID. so we can keep that as a default setup and keep duplicate that container for future projects? Just curious

]]>
By: Ana https://mixedanalytics.com/blog/remove-fbclid-from-ga-reports/#comment-8502 Fri, 12 Jul 2019 17:01:00 +0000 https://mixedanalytics.com/?p=7780#comment-8502 In reply to Anonymous.

No, FB is just adding query strings, not creating new pages on your site.

]]>
By: Anonymous https://mixedanalytics.com/blog/remove-fbclid-from-ga-reports/#comment-8501 Fri, 12 Jul 2019 14:12:26 +0000 https://mixedanalytics.com/?p=7780#comment-8501 Does this contribute to index bloat?

]]>