Integrating App Web Pixels for Standard Event Tracking in Shopify App

Integrating App Web Pixels for Standard Event Tracking in Shopify App

Platoria
Shopify Partner
13 1 6

I'm using the Shopify app template shopify-app-template-node for my Shopify app.

I want to integrate 'App Web Pixels' to track standard events [here] like product_viewed and page_viewed on my users' Shopify stores.

In my Express.js backend, I've installed @Shopify/web-pixels-extension via npm and created a file with the following code by referring to docs:

garlic_bread_1-1721286196966.png

I have a couple of questions:

  1. How can I use this file within Express.js? Simply exporting this above method and importing doesn't work.
  2. Are there specific permissions required in the TOML file for these standard events to be logged?

If there are any relevant documentation resources you could point me to, that would be greatly appreciated.

- Platoria — Lacking Reviews? Display AI review summaries for products, even if they have ZERO reviews!
- Start with our Free Plan today
Replies 0 (0)