How Do I Add Custom Tracking Code?

  • Home
  • FAQs
  • How Do I Add Custom Tracking Code?
SPP comes with a Google Analytics integration which gives you a detailed overview of your sales funnel.

To integrate other tracking scripts you can use the template editor in Settings > Templates and add your code to both public/layout.html and clients/layout.html templates. Paste your code either before the closing </body> tag or the closing </head> tag.

To add a separate conversion tracking pixel you can edit theĀ clients/receipt.html template. When editing this template put your code in the content block (between the {% block content %} and {% endblock %} tags).

If you want to track order values, use the {{ invoice.total }} variable, for example:

<script>
    ga('ecommerce:addTransaction', {
    'id': '{{ invoice.id }}',
    'revenue': '{{ invoice.total }}'
    });
</script>

Was this helpful? Give us a thumbs up…

 

Related Articles