0

Upgrading my site from ga.js legacy to analytics.js. I have a piece of code from classic ga.js that I need to upgrade to universal analytics.

How do I upgrade this code onsubmit="ga(['_linkByPost', this]); return true;" to universal analytics code? I use this code on a form for cross domain linking. Now I just have to figure out how to convert this to universal analytics.

1 Answer 1

1

I think that you need to use linker.

ga('linker:autoLink', ['example-2.com'] );

See if this is what you're looking for:

https://support.google.com/analytics/answer/1034342?hl=en

https://developers.google.com/analytics/devguides/collection/analyticsjs/linker?hl=en

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.