---- dataentry integration ----
type : integration # do not change this line
supports-foxycart-version-from : 2.0 # Minimum required FoxyCart version for this to work
supports-foxycart-version-to : # Last FoxyCart version that supports this (leave empty if unknown)
systems : pinterest # the system(s) that the integration is for, separated with commas if more than one
name : Pinterest Pixel Conversion Tracking # the name of the integration
description : Tracking Foxy conversions with the Pinterest Pixel #
tags_tags : conversion, tracking, analytics, pixel # tags, separated by commas. don't include the "system" here.
date_dt : 2021-10-06 # the date in YYYY-MM-DD format
version : # if you have a version for your code, enter it here
developer_url : # if you'd like a link back to your site, stick it here
----
====== Pinterest Pixel Conversion Tracking ======
//**Please note:**//
The code on this page is submitted by members of the FoxyCart community, and may not verified by FoxyCart.com LLC in any way, shape, or form. Please double check the code before installing. If you need help with it please [[http://forum.foxycart.com/|post in our forum]], but if we cannot offer assistance (due to unfamiliarity with this particular system or language) we apologize in advance.
===== Installation =====
Within your store's FoxyCart administration, go to the "configuration" section and enable the "Add custom header and footer code to your templates" option. Within the text boxes that appear, paste the following code into the "footer" textarea:
{% if context != "cart" or cart_is_fullpage %}
{% set pinterest_pixel_id = "###########" %}
{% endif %}
Within the script, edit the line near the start to set your Pinterest pixel ID ''{% set pinterest_pixel_id = "###########" %}''.
The script will automatically include the Pinterest Pixel initialisation code on the full page cart, checkout and receipt, but will rely on you including it on your own website for the Sidecart view. It will also track page views on the full page cart, checkout and receipt, as well as tracking the ''Checkout'' event for each completed transaction.
On your own website, in order to track the ''AddToCart'' event for Sidecart, add the following code to the footer of your website (this assumes you've placed the Pinterest Pixel initialisation code on your website already too):