1
votes

I want to track generic visits and form submissions from www.myurl.com/submission and for that I have setup 3 tags in google tag manager:

  • Google Analytics - for generic analytics stuff

    Rule:

    {{url}} matches RegEx .*
    

  • Form Listener - to trigger gtm.formSubmit

    Rule:

    {{url}} matches RegEx .*
    

  • Track Form submission - to trigger an analytics event to be tracked in analytics

    Rule:

    {{url}} contains /submission 
    {{event}} equals gtm.formSubmit
    

    Currently Google Analytics see's the form submission and tracks a goal when I publish the tag (even if I use incognito mode), but when I tried from a different computer/different account, it doesn't track the GA event triggered by "Track form submission. Also, if I email the preview/debug page to someone it triggers the event, but once they exit that mode, it stops triggering it. Any ideas?

  • 1
    Can you share URL with the published tag?Blexy
    I can only publish code since its behind a login wall. What do you suspect might be happening? problem with the way tag manager is implemented or form submission?Pedro Pereira

    1 Answers

    1
    votes

    Pedro, the preview/debug mode work only locally - that is, the same computer, same browser. If everything seems to work (also use GA Debug in Chrome, publish the container and see if everything works live. If not, try to fiddle around a bit.

    A personal suggestion -- sometimes Click listener is a better choice and it's more flexible. Using element or custom JS macros gives you all the flexibility you need and you could simply track the conversions as the clicks on submit button.