I'm trying to collect Google Analytics Token on each Ubercart order. I use the project http://drupal.org/project/uc_rules to use Rules to send this email to administrator on Order checkout complete or Payment entered.
But unfortuatnly in both rules all tokens are empty, and [ga-term] is not set at all.
I tried to simulate order on my website, cookies set by Google Analytics are available on my website, and contain information.
I have already opened an issue on uc_rules project
http://drupal.org/node/1146932#comment-4479080

Any help will be appreciated.

Regards

Comments

heyyo’s picture

Version: 7.x-1.x-dev » 6.x-1.x-dev
heyyo’s picture

Status: Active » Closed (fixed)

it seems to be again related to my cache proxy, I didn't know it was activated to all my domains on this host...

Brian294’s picture

Category: bug » support
Status: Closed (fixed) » Closed (works as designed)

Hey Lionel,
If you are looking for a cache/proxy solution that is compatible with GA Tokenizer, you might want to checkout CloudFlare. I'm actually the author of the module: http://drupal.org/project/cloudflare

Peace,
Brian

heyyo’s picture

thanks for sharing this, it looks awesome ! Your website uses the free version of cloudfare or the pro at 20$/month ?

Brian294’s picture

I use the free version.

The pro version could be required to fully support SSL -- it depends how you have setup your SSL Certificate. If you SSL is on a subdomain, for example https://secure.mydomain.com, then you can use the free version and simply exclude secure.mydomain.com from using CloudFlare. But, if your SSL certificate is on your primary website, for example https://www.mydomain.com, then you need to flip the bill for the pro version.

http://support.cloudflare.com/kb/pro-accounts/i-already-have-ssl-on-my-s...

Peace,
Brian

heyyo’s picture

I have installed correctly your module cloudflare, this service is really amazing :-) How could it be free !
So I decided to test Google Analytics Tokenizer with a Test gateway payment with an email sent by a Rule on Payment completed. And I received correctly this email with all Google analytics fields and their values.

But after I received 2 reals orders, i received the email from Rules but Google Analytics fields were empty :-(
Only the IP of the client were displayed.

BY the way which IP is displayed the one of the client or IP from Cloudflare ?