Rebuy does not have access to support pixel tracking scripts by default, as these are saved in Shopify's checkout settings page. Rebuy's Post-Purchase Page is a native Shopify App Extension, and Rebuy does not have access to expose data on the Post Purchase Page for pixel tracking purposes.
Tracking scripts are advanced customizations that are not supported by the Rebuy Support team. Rebuy Support Policy. Knowledge of web design languages such as HTML, CSS, JavaScript, and Liquid is required. Consider hiring a Shopify Partner if you aren't comfortable working with scripts.
Shopify Documentation
As outlined in Shopify's documentation. Installing an app that adds a post-purchase page to your store's checkout may disrupt custom pixel tracking, potentially missing certain events.
Considerations and limitations
Copying and pasting the existing pixel tracking script from the Order Status Page section to the Post-Purchase pixel tracking section will not work. This is because Shopify does not expose liquid variables on the Post-Purchase page, and any HTML elements other than script tags (
<script>
) tags will not work.
The amount of data that Shopify exposes on the Post-Purchase Page may be limited compared to order status page, so certain items may not be accessible at this step. It is important that any Liquid variables used in the Order Status Page pixel tracking script are converted to JavaScript. Please refer to Shopify's documentation to see what information is accessible, and what their values are on the Post-Purchase Page:
FAQ
I'm having an issue with duplicate events being tracked, how do I prevent this?
The order status page tracking scripts have access to use Liquid, so you can wrap your tracking script in an if statement to prevent it from running if it already ran on the Post-Purchase Page:
https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/pixel-tracking-post-purchase-page#compatibility-with-scripts-on-the-order-status-page
{% if first_time_accessed == true and post_purchase_page_accessed == false %}
<script>
// insert your tracking script
</script>
{% endif %}
My script is not running on the Post-Purchase Page. Why?
There are many reasons why this could be happening, please refer to Shopify's documentation to see a list of considerations when adding pixel tracking scripts to the Post-Purchase Page:
https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/pixel-tracking-post-purchase-page#considerations
Please check to see that you haven't brought over any Liquid code from your order status page tracking script, and be sure that there aren't any unsupported HTML elements included, only script tags (<script>
) are supported for Post-Purchase.
Certain items are not being tracked in my Post-Purchase pixel tracking script. How can I fix this?
Please be sure that all variables being tracked are valid JavaScript variables that Shopify exposes on the Post-Purchase Page:
https://help.shopify.com/en/manual/promoting-marketing/analyze-marketing/pixel-tracking-post-purchase-page#references
Liquid variables that are available on the Order Status Page will not be available during the Post-Purchase step.