Have your say in Community Polls: What was/is your greatest motivation to start your own business?
Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Loading custom tag on Checkout pages like TikTok app

Loading custom tag on Checkout pages like TikTok app

shftlvch
Shopify Partner
2 0 0

Hi, community.

 

I'm creating an app that loads pixel tracking code and leverages Customer Events to track customer activity. I'm trying to find a way to include my pixel code in the checkout pages.

 

I've tried:

Meanwhile, TikTok official Shopify app somehow loads its <script>-s to the <head> section even on the checkout pages. Also noticed that `trekkie` lib has it in its config. 

 

Is there a documented way to add pixel script to the <head/> on checkout pages by creating a custom app? Or TikTok has its own "partner" way to integrate with Shopify?

Reply 1 (1)

LewisJackson
Shopify Partner
1 0 0

Hi @Shftlvch Did you find a way to get a script tag on the checkout page for Shopify Plus merchants? I have found a manual workaround for merchants where they can manually add the script tag JS code directly inside the head tag of the checkout.liquid file and it works. Do you know if there's anyway to replicate this in the backend and automate it in an app?