track Conversion
Tracks conversion (a.k.a add to cart) events.
Example:
ConstructorIo.trackConversion("Fashionable Toothpicks", "1234567-AB", 12.99, "tooth", "Products", "add_to_cart")
Parameters
the name of the converting item i.e. "Kabocha Pumpkin"
the identifier of the converting item i.e "PUMP-KAB-0002"
the search term that lead to the event (if adding to cart in a search flow)
the section that the results came from, i.e. "Products"
the type of conversion, i.e. "add_to_cart"
if the conversion is custom (required for displayName)
display name of custom conversion type (required for isCustomType)
Additional analytics tags to pass
Tracks conversion (a.k.a add to cart) events.
Example:
ConstructorIo.trackConversion("Fashionable Toothpicks", "1234567-AB", "1234567-AB-RED", 12.99, "tooth", "Products", "add_to_cart")
Parameters
the name of the converting item i.e. "Kabocha Pumpkin"
the identifier of the converting item i.e "PUMP-KAB-0002"
the variation identifier of the clicked item variation i.e "PUMP-KAB-0002-RED"
the search term that lead to the event (if adding to cart in a search flow)
the section that the results came from, i.e. "Products"
the type of conversion, i.e. "add_to_cart"
if the conversion is custom (required for displayName)
display name of custom conversion type (required for isCustomType)
Additional analytics tags to pass