Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Vibes will automatically add the URL variables to capture this data as long as the URL is included inside of a "Tag Tracking" tag (detailed below in #3) in the campaign.


Product Action


Code Block
languagejs
titleProduct Detail tag
var product = {
  id: '123abc',
  price: 12.34,
  name: 'the product',
  brand: 'the brand',
  category: 'food',
  variant: 'variant',
  quantity: 3,
  coupon: 'abc123',
  position: 'position'
};
vTag("detail", product);

Add the product variable to a tag on any consumer facing “product detail” page and record information about that product view and associate it with the campaign.

...

titlePurchase

...

Additionally, you can tag each page load with one of the following product actions:

  • click
  • detail
  • add
  • remove
  • checkout
  • checkout_option
  • promo_click

For example, if you wanted to show an item getting added to cart, you could use this tag:

Code Block
languagejs
var product = {
  id: '123abc',
  affiliationprice: 'affiliation'12.34,
  revenuename: 123.45'the product',
  taxbrand: 12.34'the brand',
  shippingcategory: 1.25'food',
  couponvariant: 12.25'variant',
  listquantity: 'list'3,
  stepcoupon: 'stepabc123',
  optionposition: 'optionposition'
};
vTag("purchaseadd", purchaseproduct);

If the consumer makes a purchase, include the purchase variable to record that revenue and associate it with a mobile campaign.

Purchase Action

Additionally, you can tag each page load with one of the following actions:

  • click
  • detail
  • add
  • remove
  • checkout
  • checkout_option
  • purchase
  • refund
  • promo_click

For example, if you wanted to show an item getting added to cart, you could use this tag:


Code Block
languagetitlejsPurchase
var productpurchase = {
  id: '123abc',
  priceaffiliation: 12.34'affiliation',
  namerevenue: 'the product'123.45,
  brandtax: 'the brand'12.34,
  categoryshipping: 'food'1.25,
  variantcoupon: 'variant'12.25,
  quantitylist: 3'list',
  couponstep: 'abc123step',
  positionoption: 'positionoption'
};
vTag("addpurchase", productpurchase);

If the consumer makes a purchase, include the purchase variable to record that revenue and associate it with a mobile campaign.

2. Use the Vibes URL shortener to shorten URLs in your messaging campaigns

...