Report on purchase details

Overview

Update or create tags to report purchase details

To track online sales and revenue for specific products in your inventory feed, you’ll need to:

  1. Set up a tag on your site that records sales (transactions) for a Floodlight activity.
    You can use the global site tag with a Floodlight event snippet, a Floodlight tag, or Google Tag Manager for purchase detail reporting.

    If you already have a tag for recording Floodlight transactions, you can use an existing tag.

  2. On the page that contains the Floodlight tag or event snippet, add a data structure called the purchase details variable. Then populate the variable with the ID, quantity, and price of each item purchased.
    For example, write code that interacts with the shopping cart on your site to populate the purchase details variable and store it in a custom JavaScript variable.

    If you use the global site tag or Google Tag Manager on your site, you can store the purchase details variable in the data layer.

  3. Pass the purchase details to the Floodlight tag or event snippet.
    If you use Google Tag Manager, you can retrieve the data from the data layer.

    Otherwise, you'll need to add specifically formatted data to the Floodlight tag or event snippet.

  4. (Recommended) Use Google Tag Assistant to validate your tags

Was this helpful?
How can we improve it?