I'm working on this site k-west.co.uk - if you go to the footer and click the link to Twitter you'll find it doesn't work. Google Analytics has added utm parameters and it seems this breaks Twitter. If you remove the paramters from the url, Twitter works.
How can I tell Google Analytics not to add query parameters to this link? Is there a class or attribute I can add that will do this?
I tried to remove the parameters using JavaScript but as GA only adds the parameters as you click the button, I cannot remove them, I need to prevent GA adding them in the first place.
Thanks
It looks that you're using Google Tag Manager to add Google Analytics functionality to your site and cross-domain tracking is enabled for Analytics tag. But it looks misconfigured as #vinoaj suggested. You need to modify your Google Analytics settings variable to only add cross-domain parameters to the links to target site:
While Auto Links Domain field is blank all the links will be extended with cross-domain tracking parameters.
Related
I've created a Google Ads custom variable client_id and would like to add it to the existing Pixel that is set up on the website via GTM. However, I cannot find any documentation on how to do it via Google Tag Manager. There're instructions on how to
do it by adding a custom variable to an event snippet on the website, but there's no information regarding its setup via GTM.
Does anyone know how to add a Google Ads custom variable to the existing Pixel via GTM? Also, this variable needs to be dynamic as it should pick up different values.
Here's how the existing Google Ads tag looks:
Any suggestions would be helpful. Thank you in advance!
I getting utm_referrer parameter added at the end of my url and which is causing issue in my GA and affecting the website.
I want to remove only utm_referrer parameter.
Exclude it in Google Analytics View settings specifying it as a parameter to remove from the URL in the dedicated textarea.
See image below:
I can't track outbound link click tracking on amp pages with Google Tag Manager.
I used before Event Label ${outboundLink} - but now I don't get the link details. Instead of, I get (not set) on Google Analytics.
How can I know what is the problem and how to get data of the link details when click on the link on amp pages?
Before you can consume the user defined AMP variable, "outboundLink", you need to declare the variable as an element level data attribute and set its value. To do this you would decorate your a tag with data-vars-some-arbitrary-variable-name. For your code, ${outboundLink}, you want data-vars-outbound-link="[replace with your IRL]". Once you set the variable, you can consume it with the standard camelCase ${someArbitraryVariableName}.
So <a href="https://stackoverflow.com" data-vars-outbound-link="stackoverflow.com"> will have the AMP variable ${outboundLink} and the value with be "stackoverflow.com".
for more info see https://github.com/ampproject/amphtml/blob/master/extensions/amp-analytics/analytics-vars.md
I would like to push the referral URL to Google Analytics once someone submits the form on my landing page. Is it possible to do this using Google Tag Manager and also pass a successful form completion?
There shouldn't be any reason to pull the referral URL within GTM. Google Analytics (GA) already does this. To view referrer information, simply add a secondary dimension! Here's a screenshot of where to find the secondary dimension option:
You can use the search box in the secondary dimension dropdown menu to find and apply the Full Referrer dimension. Below, I've provided a screenshot showing the Full Referrer column that is added:
I'm trying to get Google Analytics to track the specific link in the page that was used by the users to get to a specific location.
Say I have links poing to the contact page from the main menu, the page's contents and the footer.
Looking at what other websites are doing, I've added references inside GET parameters for each of the links like so: http://www.example.com/contact?ref=menu , http://www.example.com/contact?ref=content and http://www.example.com/contact?ref=footer . I've also added the ref parameter to the ignore list inside Google Analytics so the three URLs are not tracked as separate pages.
My question now is: How sould I go about tracking which one was used to get to the contact page?
Although the post is a bit old, for others like me finding this via search, here is the solution. Enhanced Link Attribution in Google Analytics.
http://support.google.com/analytics/bin/answer.py?hl=en&answer=2558867
Sounds like you are already tracking them with the URL param.
If Google Analytics is successfully tracking them as separate pageviews with the ref= URL param, then you could create a custom report in GA that shows the number of pageviews. The custom report can be added to your dashboard for quick reference.
The custom report can be set up like this:
Metric groups: pageviews
Dimension drilldowns: page
Filters: include -> Page -> regex -> /contact\?ref=(content|menu|footer)
Or, for each click, add the following to each link:
Contact
Contact
Repeat for each link. This is no more work than adding a ref= to each link.