Question

I am working on a project to measure offline conversions with the new Universal Analytics from Google.

When a lead gets the status "order" in my custom made lead management system, we sent the earlier grabbed Google client ID with the code below to Universal Analytics. The upload is working, although Analytics sees it as an ecommerce transaction.

Does anyone know how I can modify the code or Analytics settings to make sure that Google Analytics sees it not as eCommerce transaction?

My code for uploading the Google Client ID to Analytics:

$ch = curl_init();      
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);  
curl_setopt($ch, CURLOPT_URL, 'http://www.google-analytics.com/collect'); 
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false); 
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_ANY); 
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; InfoPath.2; .NET CLR 2.0.50727)");
curl_setopt($ch, CURLOPT_POSTFIELDS, "v=1&tid=UA-XXXXXXXX-42&cid=379445656".urlencode('.')."1380816256&t=transaction&tr=123.00&ti=43388&z=".time()); 
curl_close ($ch); 
Was it helpful?

Solution

It sees it as a eCommerce transaction because the hit type you're sending t=transaction is for transactions. If you're wanting to send an alternative hit type, take a look at google's documentation for the other alternatives - Measurement Protocol Developer Guide - Sending Common Hit Types.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top