Can "page" as data layer variable name in custom events have side effects?

Hi there,

we’ve wrongly used “page” as a data layer variable name for some custom events. Could it be that using “page” as a variable in custom events can lead to wrong pageviews?

We’ve noticed that issue because we’ve had these wrong “page” variable names in some pageview reports.

Thanks,
Paul

Hi. What issues with tracking did you observe after setting up this variable?

So we have custom event for our ads impressions with a variable “page” giving us the information which ads has sent the event:


And the problem is that these variables are somehow counted and shown in a pageview report, even though we have a filter condition that in these reports only page views should be shown:

But somehow the page variable is shown in the reports:

After investigating again I think I found the issue. Piwik standard events are using some wrong variables and therefore the page variable is shown in the page view report:

  • stg.pageView
  • stg.pageLoad
  • stg.scroll
  • stg.timer
  • stg.*

Here an example for the event “stg.scroll”



So my follow-up question here :smiley: how can we modify the variables for piwik standard events?

If you define a variable, it’s available for all event types. Same with defining some datalayer structure. The thing is that the defined variables by default shouldn’t be used at all unless there are some issues with configuration.

As for your last screenshot, if you want to effectively filter out something, you have to use AND condition.

I think we found a solution to our issue → we have given our ads different variable names (which we don’t use in our page views reports) and therefore the variables aren’t shown anymore in the reports.

Thanks!