How to write custom pixel code in my shopify app so when install app add code to custompixel.

How to write custom pixel code in my shopify app so when install app add code to custompixel.

jayeshcspl1
Shopify Partner
1 0 0

 

I have created app using remix template. 

 

Remix-app-template.png

 

I want that when shopify admin install pirsch-demo1 app. Following Customer events >> custom pixel should automatically created to track purchase and want to show that data in pirsch analytics. 

 

Customer-events_listing.png

 

This custom pixel code runs only when order is successfully placed. Currently I created pirsch Custom pixel manually. I want to create it through my shopify app. How can I do that. Please guide me. 

 

customer_event_custom_pixel (1).png

Replies 0 (0)