custom pixel not working when purchase done. how to implemention using custom pixel

custom pixel not working when purchase done. how to implemention using custom pixel

1080
Shopify Partner
301 9 66

Hi all how to add the conversion tracking code into the  when order are place successfully. 
`

console.log("this from pixel code");

analytics.subscribe("checkout_completed", async (event) => {
console.log("checkout_completed ",event)

});


analytics.subscribe("urchase_completed", async (event) => {
console.log("Purchased ",event)

});

analytics.subscribe("Purchased", async (event) => {
console.log("Purchased ",event)

});


console.log("this from pixel code end ");

`

Replies 4 (4)

Josh_Uebergang
Shopify Partner
1024 44 278

Shopify's Customer Events are unreliable. I've tried to use it but it hardly works as it blocks things from firing that it has no reason to. Shopify have an example pixel in their documentation.

The debugging process is painful as well.

Run Google Shopping ads? Get the free definitive guide to Google Shopping for Shopify (no optin required): https://www.digitaldarts.com.au/google-shopping
1080
Shopify Partner
301 9 66

@Josh_Uebergang  
thanks for the answer where I can posted and  get resolved ?

what method are you using for the purchase conversions tracking 

Josh_Uebergang
Shopify Partner
1024 44 278

My method :-)... that many others depend on: https://www.digitaldarts.com.au/google-ads-conversion-tracking-shopify

Run Google Shopping ads? Get the free definitive guide to Google Shopping for Shopify (no optin required): https://www.digitaldarts.com.au/google-shopping
1080
Shopify Partner
301 9 66

@Josh_Uebergang  thanks for the your blog guide that was really good.

 

 

first_time_accessed  not working. can you please provide the how it can be work with the post purchase, what are change for the sandbox ?