How to add tiktok pixel to custom shopify page

I created a landing page and using alternative layout and I added custom landing page to shopify. Now my landing page url looks like https://domain.com/pages/product-name

I have already installed tiktok pixel using sales channel and its working flawlessly on the entire store (checkout, product pages, cart etc) but the tiktok pixel is not showing up on the custom page I created. Please help me out! how can I make tiktok pixel work on the custom page I created.

I have also tried installing tiktok code manually. I added the script code to theme.liquid and the custom page I created. Using this method pixel shows up on the custom page but it doesn’t work on checkout page now.

Without taking a closer look, I’m not sure why it’s not rendering on your custom pages.

If when adding the script to theme.liquid, allows it to work on your custom page, but then creates issues on other pages… it sounds like it could be causing a conflict since it’s likely rendering twice.

If you want to try adding it to a global layout - like theme.liquid - try adding some conditional logic.

Something like this:

{% if template contains 'page' %} 
...script code here...
{% endif %}

You can try this app for placing Titok pixel easily without touching any codes https://apps.shopify.com/tiktok-multi-pixels