I have had contact with the offical Google Analytics helpdesk yesterday. They pointed out to me that the proper guidelines of the analytics.js script are not followed on my website. The script is generated by this module.

For cross-domain tracking the module generates code like the following:
ga("linker:autoLink", ["destination.com", "dest3.com"]);

however the guidelines are to use single parenthesis (') instead of the used double parenthesis ("), like the following piece of code:
ga('linker:autoLink', ['destination.com', 'dest3.com']);

See this developer.google-page for more info.

Google support told me they where not sure this would generate problems. But they strongly recommended to change it anyway.

As far as I can see this problem extends beyond cross-domain tracking. Since the module seems to use all double parenthesis ("), and Google seems to use single parenthesis (').

Comments

hass’s picture

Category: Bug report » Support request
Status: Active » Fixed

This is not a bug.

If you find bugs, let me know please.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.