Jump to content

Google Analytics integration


theWebalyst

Recommended Posts

[WHMCS & hosting newbie advisory]

 

I'm yet to launch and getting the hand of WHMCS and have installed asynchronous GA code to track order completion (orderforms / complete.tpl) using info from the Docs on GA integration and a lengthy forum thread from 2010.

 

It works up to a point. I get ecommerce data in Google but it is incomplete - only $orderid and $amount appear. Viewing the source for the "cart.php?a=complete" page I can see that only those values appear where they are passed to the Google tracker - the remainder are empty (i.e. $city, $state, $country, $packageid, $name, $type). So non of the values being accessed from the database are being obtained ($orderid and $amount come from elsewhere).

 

Questions:

1) Does anyone have this working properly?

2) Any clues as to why the PHP code might not be obtaining these values, or not assigning them in the GA script? We're using the code from the documentation article below:

 

http://docs.whmcs.com/Google_Analytics_Integration

 

Thanks,

 

Mark

Web Hosting, Web Marketing & WordPress Websites for Business

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated