Example Flow: Wix Marketing Tags

This article shares a possible use case your app could support, as well as an example flow. You're certainly not limited to this use case, but it can be a helpful jumping off point as you plan your app's implementation.

Manage Marketing Tags

Your app could help site owners manage their marketing tags after they have updated their site structure. First, you’ll list the existing tags. Then your app will update the associated domains.

Step 1: List the Embedded Marketing Tags

First, your app will call the List Marketing Tags endpoint to retrieve the marketing tags that the owners have previously embedded.

Copy
1

In the response of the call, you can see that the associated domains are out-dated, and thus the marketing tags won’t load anymore.

Copy
1

Step 2: Update an Embedded Marketing Tag

Then, you’ll do a separate call of the Upsert Marketing Tag endpoint for each tag to change the associated domain. You’ll need to pass the new domain in the body of each call, as shown in the example below for the Google Ads Conversion tag.

Copy
1
Was this helpful?
Yes
No