Take the tour ×
Drupal Answers is a question and answer site for Drupal developers and administrators. It's 100% free, no registration required.

I need to use Google Analytics custom variables , but I want to give a different variable value depending of the urls.

I'm checking the G.A module, but I don't see how to define the variables to say when to use one token or other depending of the url.

The only way I see is build a token that checks the url and gives me back the value.

I'm thinking in something more close to Paths Breadcrumbs where you can define context and choose a token/value depending of the context.

share|improve this question
add comment

1 Answer

According to the Project page on drupal.org, the Google Analytics module supports custom variables.

Custom variables support with tokens

From the docs:

Custom variables

Allows you to send custom variables along with the Google Analytics tracking request. You can use node tokens to populate the value on pages that provide the node object.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.