Hello,

I've a node referencing another node via an entity reference. I want the title of the second node as a custom dimension of the first node.

I have the following token setup:

[node:node-reference:title]

The title correctly is sent over but it is HTML Encoded, for example ampersands in the second node title show up as & in Google Analytics dashboard.

CommentFileSizeAuthor
#2 googleanalytics-2656724-1.patch631 bytesjohnennew
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ceng created an issue. See original summary.

johnennew’s picture

This is one way to solve it but I don't know if this is correct for all cases, another way might be to add a callback function to the options array of the token_replace function then add a drupal_alter in there to allow site builders the option to decide if they want to change the values themselves.

hass’s picture

Category: Feature request » Support request
Status: Active » Postponed (maintainer needs more info)

Try using raw values. Not sure why it is html encoded. Maybe you need a custom display for tokens to get rid of this

hass’s picture

Status: Postponed (maintainer needs more info) » Closed (cannot reproduce)