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
Hi @kraihn , I manage to get everything working since last time, I'm getting hits on GA smoothly. The only thing I haven't been able to do is to get GTM to pass the different event information to GA.
I believe that I need to create a Data Layer variable to configure the event tracking params (fields: category, action, label and value) since if I set those values with a fixed string that's the value it sends to GA, and I need those to be what I'm sending from my app with "trackEvent" function.
So, I tried to create Data Layer variables with the data layer variable name as the params of your function are called, but it doesn't work, could it be that they are named different when being sent to GTM? or am I missing something else here?
I know this may not be an issue with your plugin but it's the only source I've got left to check on.
Thanks,
Jonatan
The text was updated successfully, but these errors were encountered:
@jonystorm, the Data Layer variables aren't the same as the parameter names. For example, the Data Layer name for the event label property is "target-properties". This is because I built this plugin against an existing Analytics plugin for AngularJS that named it's properties differently. I've added a Wiki page with the expected Data Variables, and how to tie them to pageview and event tracking. You will need to create the Marcos, Rules and Tags manually to get full results.
@MikeBateman, the Data Layer isn't directly accessible from JS. Only the two specific methods are available at this time. It would be a nice feature in the future to allow custom modifications to the Data Layer, but my current application doesn't have the need for it. I would be open to a pull request for it if you have the need and capacity.
Hi @kraihn , I manage to get everything working since last time, I'm getting hits on GA smoothly. The only thing I haven't been able to do is to get GTM to pass the different event information to GA.
I believe that I need to create a Data Layer variable to configure the event tracking params (fields: category, action, label and value) since if I set those values with a fixed string that's the value it sends to GA, and I need those to be what I'm sending from my app with "trackEvent" function.
So, I tried to create Data Layer variables with the data layer variable name as the params of your function are called, but it doesn't work, could it be that they are named different when being sent to GTM? or am I missing something else here?
I know this may not be an issue with your plugin but it's the only source I've got left to check on.
Thanks,
Jonatan
The text was updated successfully, but these errors were encountered: