Skip to content

Comments

Support customVariable in GoogleAnalytics#5

Open
isleshocky77 wants to merge 5 commits intokriswallsmith:masterfrom
isleshocky77:customVariable
Open

Support customVariable in GoogleAnalytics#5
isleshocky77 wants to merge 5 commits intokriswallsmith:masterfrom
isleshocky77:customVariable

Conversation

@isleshocky77
Copy link

User-Defined variables is supposed to be deprecated. This code allows for the use of a customVariable.

Colin Darie and others added 5 commits August 28, 2013 17:12
Conflicts:
	lib/tracker/sfGoogleAnalyticsTracker.class.php
…equests

The option is named "insert_custom_vars_if_ajax". When it's set, in ajax
requests, if custom vars have been defined, the tracker will be inserted
but will contain only the push for these vars, this is no a full re-declaration.
You still need to push the _trackPageView or _trackEvent with js, for
example.

This is primary designed like this to work with pjax, because
a) the custom vars may change over the pages loaded in pjax
b) pjax push the _trackPageView at the end of each request

This have been implemented only in the async tracker.
Conflicts:
	lib/tracker/sfGoogleAnalyticsTrackerAsynchronous.class.php
	lib/tracker/sfGoogleAnalyticsTrackerGoogle.class.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant