For stores on the VTEX platform, Newtail offers a storefront app (Newtail Media APP VTEX) that drastically simplifies implementation. The app includes visual components and all the logic for ad queries and event notifications.
SKU field for product identification.manifest.json file, add "newtail.media": "0.x" to the peerDependencies.vtex install newtail.media@0.x in your terminal.Store Settings > Newtail Media and enter your Publisher ID provided by Newtail.policies.json:
{
"contentSecurityPolicy": {
"default-src": ["'self'", "newtail-media.newtail.com.br"],
"connect-src": ["'self'", "newtail-media.newtail.com.br"]
}
}
Declare the app’s blocks in your theme’s templates to display the ads.
Available Components:
newtail-media-banner: Renders sponsored banners.newtail-media-shelf: Renders a shelf of sponsored products.newtail-media-search: Adds “Sponsored” badges to products in search results.newtail-media-conversion: An essential component that manages the sending of conversion events. Must be included on all pages.