https://developers.google.com/analytics/devguides/collection/analyticsjs/enhanced-link-attribution after reading the docs I'd like to edit the UA tag in GTM to add this line: ga('require', 'linkid');


  • Couldn't find the actual GA tag code in GTM
  • Should it be linkid as a generic name or I should write a dedicated line for every link on the page?
  • Google Analytics tags don't have to be in Google Tag Manager. Maybe you have the GA snippet directly in your page source? Jun 30, 2020 at 9:24
  • I believe GTM should be the way to make it all right, hence the question. Jul 1, 2020 at 10:18

1 Answer 1


In the GA Settings variable.
Under More Settings > Advanced Configuration > Enable Enhanced Link Attribution
Set to true enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.