Introduction

 

Developer Preview
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:

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:

Copy
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 TagExternal ID NameID Format
    Google Ads Conversion tagConversion IDAW-123456789
    Google Universal Analytics tagAnalytics IDUA-12345-1
    Google Analytics 4 tagMeasurement IDG-12345
    Yandex Metrica tagTag number123456789
    Facebook Pixel tagPixel ID123456789
    Google tagTag Manager Container IDGTM-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.

Was this helpful?
Yes
No