Google Analytics price tracking

This topic contains 18 replies, has 5 voices, and was last updated by  Kiran 7 years ago.

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket
  • Author
    Posts
  • #711

    Laura Venturini
    Buyer
    Post count: 36

    Hi,

    I’m using Invoicing with GeoDirectory.

    Currently I can track when someone buy a package for a listing, but I would also track prices, like I do with ecommerce.

    Is it possible with Invoicing?

    #716

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Hi Laura,

    Do you have an example of what you mean?

    Thanks,

    Stiofan

    #717

    Laura Venturini
    Buyer
    Post count: 36

    Seo specialist that is working on my project is able to track price of purchased item via Analytics (using WooCommerce).

    He asked me if it is possible to do the same with Invoicing + GeoDirectory.

    #722

    Paolo
    Site Admin
    Post count: 31206

    He must be using either a custom script or a plugin for that, if you let us know, we can check and try to replicate…

    #727

    Laura Venturini
    Buyer
    Post count: 36

    I try the solution here https://developers.google.com/analytics/devguides/collection/analyticsjs/ecommerce

    What I need is to print this script

    
    
    <script>
    ga('require', 'ecommerce');
    ga('ecommerce:addTransaction', {
      'id': '1234',                     // Transaction ID. Required.
      'affiliation': 'Acme Clothing',   // Affiliation or store name.
      'revenue': '11.99',               // Grand Total.
      'shipping': '5',                  // Shipping.
      'tax': '1.29'                     // Tax.
    });
    ga('ecommerce:send');
    </script>

    with the right value, in the “Payment confirmation” page.

    Maybe it could be printed with

    [wpinv_receipt]

    shortcode: can you address me to replace the function related to this shortcode?

    It could be a good feature to add to WP Invoicing. 🙂

    Thanks!

    #728

    Stiofan O’Connor
    Site Admin
    Post count: 22956

    Thanks for the info, i’ll look into it and see how easy it would be to implement.

    Thanks,

    Stiofan

    #731

    Laura Venturini
    Buyer
    Post count: 36

    I’m trying to create a shortcode that print the script to add it in “Payment confirmation” page, but I don’t know how to get invoice informations.

    The only thing I have about inovice is the invoice_key parameter in the url: there’s a function to get invoice object by invoice_key?

    I found the wpinv_get_invoice() function, but it works with ID.

    #732

    Alex Rollin
    Moderator
    Post count: 27815

    Hello!

    Developer documentation for the plugin is available here: https://wpinvoicing.com/docs/category/developers/

    If a developer is available to help you, they will reply to this ticket, but, we are not able to take on custom work at this time. Please take a look at the documentation referenced above and see if it contains the information you need.

    #735

    Kiran
    Moderator
    Post count: 7069

    Hi Laura,

    I have created documentation on how to use integrate Google Analytics Ecommerce Tracking with Invoicing.
    Please see https://wpinvoicing.com/docs/google-analytics-ecommerce-tracking/.

    To track Invoicing transactions add that snippet to your theme functions.php file or via any snippet plugin.

    Let us know.

    Thanks,
    Kiran

    #736

    Laura Venturini
    Buyer
    Post count: 36

    Oh wonderful, thank you Kiran!

    I will test it as soon as possible.

    As always your support is top! 🙂

    #746

    Laura Venturini
    Buyer
    Post count: 36

    Hi Kiran, I test the snippet but the code is not printed anywhere: I search the script in the Success payment page and also in the page where the user is landed after PayPal payment (the one that says We’re process your payment…).

    Can you help me to fix this issue?

    #747

    Kiran
    Moderator
    Post count: 7069

    Hi Laura,

    If you provide admin & FTP credentials then i will add it for you from my side.

    Kiran

    #748

    Laura Venturini
    Buyer
    Post count: 36
    This reply has been marked as private.
    #750

    Kiran
    Moderator
    Post count: 7069
    This reply has been marked as private.
    #751

    Laura Venturini
    Buyer
    Post count: 36
    This reply has been marked as private.
Viewing 15 posts - 1 through 15 (of 19 total)

We have moved to a support ticketing system and our forums are now closed.

Open Support Ticket