Introduction
APIs in Developer Preview are subject to change and are not intended for use in production.
Send us your suggestions for improving this API. Your feedback is valuable to us.
With Wix Marketing Tags, you can embed marketing tags in your website. The supported marketing tags are:
- Google Ads Conversion tag
Note: The Google Ads Conversion tag was previously called Google AdWords tag.
- Google Analytics tag
Note: Both Google Universal Analytics tags and Google Analytics 4 tags are supported.
- Yandex Metrica tag
- Facebook Pixel tag
- Google tag
These marketing tags enable you to track user activity, ad conversion rates, and more.
Note: Only one marketing tag of each type is supported per Wix site.
The Marketing Tags API allows you to:
- List marketing tags
- Create and update marketing tags
- Delete marketing tags
Import statement
To use Wix Marketing Tags,
import { marketingTags }
from the wix-marketing-tags.v2
module:
1
Terminology
-
Domain: Specifies which website is associated with the marketing tag.
Note: When you change the domain of a Wix site, the embedded marketing tags won’t load anymore. To update the domain use the Upsert Marketing Tag function.
-
Tracking ID: Specifies your external tracking ID. Learn more about each tracking ID in the corresponding object description. These are the supported external IDs:
Marketing Tag External ID Name ID Format Google Ads Conversion tag Conversion ID AW-123456789 Google Universal Analytics tag Analytics ID UA-12345-1 Google Analytics 4 tag Measurement ID G-12345 Yandex Metrica tag Tag number 123456789 Facebook Pixel tag Pixel ID 123456789 Google tag Tag Manager Container ID GTM-12345
Override permissions
Functions in Wix Marketing Tags are restricted and only run if you elevate permissions using the wix-auth
elevate()
function.
Warning: Elevating a function allows it to be called by any site visitor. Exercise caution to prevent security vulnerabilities.