E-Commerce Tracking
Glass can track products sold, quantity, revenue, and currency.
Glass will link these to anonymous user sessions, providing attribution to ad networks and campaigns.
E-commerce tracking in Glass requires adding additional tracking script to your website, that is triggered upon conversions.
How to Track Revenue in Glass
Set up Glass on your website.
Make sure Glass is installed and working on your website already.
Add the
revenue
tracking script.All fields are required.
<script> glass.revenue({amount: 12.99, currency: 'USD', product: 'Awesome Widget', quantity: 1}); </script>
You will need to call
glass.revenue
for each line item.Pass through your checkout process
Verify data is being received in Glass.
Frequently Asked Questions
Can I install this script via Google Tag Manager?
Yes, you can install Glass revenue tracking inside Google Tag Manager.
Make sure you use tag sequencing so that the conversion tracking script fires after the Glass analytics.js
script is loaded.
Does Glass convert currencies?
No. Glass can track sales in different currencies, but will not convert between currencies.