•  

Google Analytics Ecommerce tracking integrated?

  1. u 4903
    offline
    Brendan
    Posted 1 year ago

    So I put my Analytics code in the theme, and it's tracking my visitors
    but its not tracking the sales. Isn't it supposed to? Seems like a logical
    piece that should be standard.

    If not, how do I enable the tracking of the sales over to Google Analyics?

    Thanks all!

  2. u 7
    offline
    Marie
    Posted 1 year ago

    Hi Brendan,

    Google Analytics does not track sales it only track visits to your website. If you want to track your sales specially affiliate products, you will need to add tracking code for it provided from your affiliate partner.

  3. u 4
    offline
    Posted 1 year ago

    Hi Brendan,

    Google does have an analytics for tracking ecommerce transaction. Please watch this video
    http://www.youtube.com/watch?v=AHhB0wH6pKs

    Thanks,

  4. u 4903
    offline
    Brendan
    Posted 1 year ago

    I know Analyics supports it - before upgrading to shopperpress I had it running great. I assumed ShopperPress would automatically enable that component of Analyics. If not, how can I enable it to track all sales from the cart again?

    Thanks!
    ~Brendan

  5. u 5413
    offline
    Michaelavailable for hire
    Posted 1 year ago

    I have Google Analytics plugin setup on Wordpress already, is it neccesary to also set it up on Shopperpress and enable tracking.

  6. u 4903
    offline
    Brendan
    Posted 1 year ago

    ...now don't steal this thread! I was asking what are the requirements to track the SALES specifically in Google Analytics? seeing as ShopperPress has a built-in way to 'enable' Analytics visit tracking, eCommerce tracking is logical. How can I set this up?

  7. u 4928
    offline
    Liam
    Posted 1 year ago

    Would also love to find a solution for the GA ecommerce tracking if anyone has it up and running successfully.

  8. u 1
    offline
    Mark
    Posted 1 year ago

    you would need to enter sales tracking code to your callback page, in shopperpress its;

    template_shopperpress/_tpl_callback.php

  9. u 5413
    offline
    Michaelavailable for hire
    Posted 1 year ago

    Mark, Can you answer this question for me Please.

    I have Google Analytics plugin setup on Wordpress already, is it neccesary to also set it up on Shopperpress and enable tracking.

    Thank you Sir.

  10. u 4281
    offline
    Matt
    Posted 1 year ago

    Where exactly do we paste the e-commerce tracking code in the callback page?

  11. u 5519
    offline
    Bill
    Posted 1 year ago

    @Matt, open _tpl_callback.php file and paste your Google Analytics code before <?php get_footer(); ?>

    @Michael, what plugin you are using? if the plugin you are using put the code to every page in the site, it doesn't work, you only need to add Google Analytics code to _tpl_callback.php file. Or "callback" page.

    Bill.

  12. u 4903
    offline
    Brendan
    Posted 1 year ago

    Mark I don't think the callback page is ALWAYS called from PayPal or Google Checkout does it? some other tests I ran didn't seem to. If I'm correct, where else can we put that google sale tracking code to make sure it gets called?

    Future request: can Google Analytics SALES TRACKING be integrated with your "ShoperPress Analytics" page...

  13. u 5519
    offline
    Bill
    Posted 1 year ago

    Brendan, you also can add Future request here: http://premiumpress.uservoice.com/

    Bill.

  14. u 6117
    offline
    Ian
    Posted 1 year ago

    If you are adding conversion tracking, eg; from PPC, GA Goals, etc wouldn't you only want it in the part of _tpl_callback.php after:
    <?php if($order_status == "thankyou"){ ?>
    and before line 69:
    <?php }elseif($order_status =="pending"){ ?>

    Not at the end before <?php get_footer(); ?> ?

    Would another way work like to create a new page called say: callback-sucess and then change that to be the successful payment page. Then you can track visitors to just that page?

  15. u 5519
    offline
    Bill
    Posted 1 year ago

    thank you for the info Ian.

    Bill.

  16. u 5876
    offline
    Viktoravailable for hire
    Posted 1 year ago

    Would Ian's approach work? Create success callback page for conversion tracking. Would love to know. Keeping track of it is key.

  17. u 217
    offline
    Richard Bavailable for hire
    Posted 1 year ago

    Just placing the conversion tracking code is not enough. You need to specify some variables too. How do we hook those up in ShopperPress?

    For PremiumPress theme customisations, plugins, child themes and support visit:
    http://premiumwebservices.co.uk
  18. u 4903
    offline
    Brendan
    Posted 1 year ago

    Lots of good questions - can staff answer our questions here? Richard, Lan, Viktor all are asking good questions looking for detail on exactly how to track the dollar value of the sale. @Mark??

  19. u 217
    offline
    Richard Bavailable for hire
    Posted 1 year ago

    As I have mentioned it before, in order to track e-commerce transaction you need to pass to google dynamically the values such as qty, shipping, total, tax, product name etc. I could make a modification but need to know where are the values stored (as it seems it is stored in session). Possibly the name of the variables would suffice.
    Mark, can you please give us some response?

  20. u 4903
    offline
    Brendan
    Posted 1 year ago

    Agree Richard, I've been asking for these details for google analytics but also for affiliate system integration purposes. If we can get the data from premiumpress staff that's specific enough to take action with Google Analytics, I'm sure I can impliment the affiliate system as well. Please let us know mark & crew. "use the callback page" isn't enough of an answer, I've heard that a few times now but some details clearly are required... either tell us where to find the specifics we need... I'd think this type of tracking should be built in considering Google Analytics is already built-in! ~Brendan

  21. u 1
    offline
    Mark
    Posted 1 year ago

    hi

    i didnt realise it would be difficult for you guys to figure out, heres an example;

    $result = mysql_query("SELECT * FROM ".$wpdb->prefix."orderdata WHERE ".$wpdb->prefix."orderdata.order_id='".strip_tags($GLOBALS['PPTorderID'])."'", $wpdb->dbh)
    or die(mysql_error().' on line: '.__LINE__);
    $array = mysql_fetch_assoc($result);

    the value $array then stores all of the order data thats saved in the database;

    autoid MEDIUMINT( 10 ) NOT NULL AUTO_INCREMENT ,
    cus_id VARCHAR( 10 ) NOT NULL ,
    order_id VARCHAR( 50 ) NOT NULL ,
    order_ip VARCHAR( 100 ) NOT NULL ,
    order_date DATE NOT NULL ,
    order_time TIME NOT NULL ,
    order_data LONGTEXT NOT NULL ,
    order_items VARCHAR( 255 ) NOT NULL ,
    order_address BLOB NOT NULL ,
    order_addressShip BLOB NOT NULL ,
    order_country VARCHAR( 150 ) NOT NULL ,
    order_email VARCHAR( 255 ) NOT NULL ,
    order_total VARCHAR( 10 ) NOT NULL ,
    order_subtotal VARCHAR( 10 ) NOT NULL ,
    order_tax VARCHAR( 10 ) NOT NULL ,
    order_coupon VARCHAR( 10 ) NOT NULL ,
    order_couponcode VARCHAR( 100 ) NOT NULL ,
    order_currencycode VARCHAR( 10 ) NOT NULL ,
    order_shipping VARCHAR( 10 ) NOT NULL ,
    order_status INT( 1 ) NOT NULL DEFAULT '0',
    cus_name VARCHAR( 100 ) NOT NULL ,
    payment_data BLOB NOT NULL ,

  22. u 1
    offline
    Mark
    Posted 1 year ago

    add that to your "tpl_callback.php" or _tpl_callback.php where required.

  23. u 217
    offline
    Richard Bavailable for hire
    Posted 1 year ago

    Thank you Mark! That was exactly what I was looking for. Now I can start the work on the e-commerce integration. Once properly tested, I will share my code here. (and hopefully it can be integrated in future updates?)

  24. u 936
    offline
    Brandon
    Posted 1 year ago

    I would like to know your tested Code after you finish RichardB

  25. u 4903
    offline
    Brendan
    Posted 1 year ago

    I tried messaging Richard last week but haven't heard from him. I've been trying to figure it out on my own (not much of a programmer anymore) with no success..... please share any successes you have here! We really need to see Google Conversions to help us know where our marketing is and isn't working.... i wish this was integrated....

  26. u 217
    offline
    Richard Bavailable for hire
    Posted 1 year ago

    I am sorry, but right now I have only SP v7 BETA site installed. Anyone willing to use their SP site for testing of the Google Analytics E-commerce Conversion Tracking integration?

  27. u 4903
    offline
    Brendan
    Posted 1 year ago

    Well I'm sure willing! I have it partly working - turns out the PayPal buyer was never GETTING to my callback page - there really isn't any docucmentation I can find from ShopperPress on HOW PayPal is to be confiugred internally - i setup the "Automatic Return URL" to my callback page, now the Google Analytics code can be run - but my concern here is that WHAT IF a user clicks away in those 5 seconds of delay before their browser reroutes to my callback page? Is there any way to prevent that delay before they're popped over to my callback page?

    Richard I'm game for anything, email me or private me. My userbase is small enough that small breaking and fixing efforts will go unnoticed.
    ~Brendan

  28. u 4903
    offline
    Brendan
    Posted 1 year ago

    MARK: Am I correct that the echo SPEC($_POST['mc_gross'] and other PayPal variables will NOT BE AVAILABLE for use inside the _tpl_callback.php files? All my testing of PayPal and I can see those variables are populated when using the "Admins-test your callback page" button, but when you do the real thing and buy something with PayPal, all those PayPal IPN variables are worthless - the only variables available are the $array variables above that Mark suggested (order_id,order_total, etc).

    Maybe there's a better home for Conversion tracking than inside the callback.php files?

  29. u 217
    offline
    Richard Bavailable for hire
    Posted 1 year ago

    Mark, how do you get the order id inside a plugin? It does not seem to be able to use $GLOBALS['PPTorderID'] ? Any advice would be great.