You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to add DocHead.loadScript but can't get it to work. Could you please tell me where and how to add this in a Flowrouter-srr stack
var gaScript = 'https://www.google-analytics.com/analytics.js';
DocHead.loadScript(gaScript, function() {
// Google Analytics loaded
ga('create', 'UA-XXXX-Y', 'auto');
ga('send', 'pageview');
});
Made a good effort myself to get it to work. Asked on Meteor forum, Stackoverflow, Tons of Google & and even searched through all github repos after some repo that used it in it's code, But nothing...
Putting up good examples would make the biggest difference, saving time for both users and on your part eliminating loads of questions.
The text was updated successfully, but these errors were encountered:
I don't think it matters where you add it. But as far as I can tell, this only works on the client, meaning it will not be SSR'd. I might be wrong though.
Trying to add DocHead.loadScript but can't get it to work. Could you please tell me where and how to add this in a Flowrouter-srr stack
Made a good effort myself to get it to work. Asked on Meteor forum, Stackoverflow, Tons of Google & and even searched through all github repos after some repo that used it in it's code, But nothing...
Putting up good examples would make the biggest difference, saving time for both users and on your part eliminating loads of questions.
The text was updated successfully, but these errors were encountered: