Running Google Analytics as a script

I’m trying to use Google Analytics to track the progression of activity from my wix site to another 3rd party site. According to Google, I can use the Linker plug in to make cross-domain tracking much easier:

Specifically, I’d like to execute this code:
// Loads the Linker plugin
ga(‘require’, ‘linker’);
// Instructs the Linker plugin to automatically add linker parameters
// to all links and forms pointing to the domain
ga(‘linker:autoLink’, [‘yourclinic.janeapp.com’], false, true);

I know that I can add the HTML app to run code, but can I load the GA tracking code this way? I tried with Google Tag Manager and it wasn’t working, but I wasn’t sure if that was just for GTM or if the same issue would be at place for Google Analytics.

1 Like

Hi,
Instead of embedding the code, you can simply add Google analytics as explained here .

Best,
Tal.

I have been told by Wix support that Wix does not support Cross Domain tracking, but I’m not sure the support person knew what I was asking. So I’m double checking here. Does Wix support Google Analytics cross domain tracking?

Antony- Did you ever find out if Wix supported Cross Domain tracking?

I gave up and cancelled Wix. Still mean to test this with another vendor though.

Did you ever reach out to find a Wix developer? Did you try using the Wix code? I cannot, for the life of me figure it out?!

Hi,
Note that this forum is specialised in Wix Code product. For questions regarding Google Analytics, please contact Wix Support team as they know best.

Have a good day,
Tal.

I am also looking to add scripts by code. Tracking codes from facebook pixl, google analytics and others like “Addthis” which I can’t seem to add by code.

Would be the same as the google analytics code asked for here.

Any ideas on how to do this in Wix?