Hi I want to create the app pixel and it was auto enable it.
I am following the https://shopify.dev/docs/api/admin-graphql/unstable/mutations/webPixelCreate
not able to create the Web pixel.
what is the account id input need to pass ?
Hi I want to create the app pixel and it was auto enable it.
I am following the https://shopify.dev/docs/api/admin-graphql/unstable/mutations/webPixelCreate
not able to create the Web pixel.
what is the account id input need to pass ?
@Stephen-Charles Are you using the Graph QL ? can you please add more detail answers ??
The accountId input in the webPixelCreate mutation refers to the ID of the associated MarketingActivity. This ID is a unique identifier that Shopify assigns to the MarketingActivity when it is created.
To get the accountId, you need to create a marketing activity for your app first. You can do this by using the marketingActivityCreate mutation. Once you’ve created a marketing activity, you’ll be able to see the ID in the response. You can see an example of this in our developer docs here.
Hope this helps!
@Liam Thanks lot for the your answers.
can you please give more detail what are the steps are required to create the app pixel and auto connected with store.
also not mention shopify Document https://shopify.dev/docs/apps/marketing/pixels/getting-started#step-5-create-a-web-pixel-setting-for-the-store
shopify document was good but sometime not finding the relevant information.
Are you having issues when you follow step 4 here?
just I change the my code
webPixelInput: {
settings: JSON.stringify({
"accountID": 'Account_ID_45466_this_is_as_per_toml'
}),
},
it was working fine.
@Liam Thanks for the answers, no need to create the marketing activity. I am confirm that.
@1080 Thank you