railslove / rack-tracker

Tracking made easy: Don’t fool around with adding tracking and analytics partials to your app and concentrate on the things that matter.
https://www.railslove.com/open-source
MIT License
647 stars 121 forks source link

Can't Override Default google_tag_manager Event #162

Open lsdmi opened 3 years ago

lsdmi commented 3 years ago

Here's my code t.google_tag_manager :push, { event: 'event', action: 'action', category: 'category', label: 'label' }.

Seems it's sending all variables except event to the google tag manager console. Event variable always says gtm.load, even though I'm passing custom one above.

Works fine if I pass it through dataLayer in js tho. Is there anyone else facing this issue?

Appreciate any help :)