Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Google Tag Manager integration not working #214

Open
cpury opened this issue Mar 1, 2019 · 1 comment
Open

Google Tag Manager integration not working #214

cpury opened this issue Mar 1, 2019 · 1 comment

Comments

@cpury
Copy link

cpury commented Mar 1, 2019

I'm using several integrations (Google Analytics, Mixpanel and Google Tag Manager). They all work except Google Tag Manager. There, nothing is tracked.

When I check the Network tab in chrome dev tools, I see that the GTM JS file is not loaded. I see https://www.google-analytics.com/analytics.js and https://cdn.mxpnl.com/libs/mixpanel-2-latest.min.js being loaded, but no https://www.googletagmanager.com/gtm.js or similar.

There are no errors or warnings. My settings look something like this:

  "public": {
    "analyticsSettings": {
      "Google Analytics": {
        "trackingId": "UA-..."
      },
      "Google Tag Manager": {
        "trackingId": "GTM-..."
      },
      "Mixpanel": {
        "token": "...",
        "people": true
      }
    }
  },

Any ideas? This is a blocker for us, as without GTM, we can't do ads with conversion tracking...

@cpury
Copy link
Author

cpury commented Mar 11, 2019

FYI: This project is dead. But it's easy to rebuild in your project:

  1. Install auto-analytics as described here, including building your own analysis.js (takes a few minutes): https://github.com/okgrow/auto-analytics
  2. Look at what this Meteor package here is doing and copy the behavior over to your project. The important parts are the configuration on the client, the automatic identification (though you're better off redoing those with Accounts.onLogin and Accounts.onLogout) and the browser policy on the server.

Done! Up to date, any integration you want, and less buggy code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant