Closed (works as designed)
Project:
Google Analytics
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
5 Jun 2018 at 00:54 UTC
Updated:
14 Jun 2018 at 17:55 UTC
Jump to comment: Most recent
Comments
Comment #2
hass commentedSee google_analytics.tokens.inc
Comment #3
dmudie commentedThanks but that doesn't really help me. I'm using my own custom module to create a custom token. I'm setting the token in the same way as the google analytics module and can verify that the token is set. However, when I want to use this token as a custom dimension, it does not get added. Any help is appreciated.
Comment #4
hass commentedThere is no code in this module that blocks you from doing this. So you need to debug yourself or may ask token team.
Comment #5
dmudie commentedUpdate. I found the problem. For a dynamically-created page that has no entry in the menu, nothing will be returned by the menu_get_object function, and as a result, nothing get set in the $data array for token_replace. I have a workaround for my case.