当前位置: 动力学知识库 > 问答 > 编程问答 >

javascript - Woocommerce Tracking Tag

问题描述:

(function() {

window._pa = window._pa || {};

// _pa.orderId = "myOrderId"; // OPTIONAL: attach unique conversion identifier to conversions

// _pa.revenue = "19.99"; // OPTIONAL: attach dynamic purchase values to conversions

// _pa.productId = "myProductID"; // OPTIONAL: Include product ID for use with dynamic ads

var pa = document.createElement('script'); pa.type = 'text/javascript'; pa.async = true;

pa.src = ('https:' == document.location.protocol ? 'https:' : 'http:') + "//tag.marinsm.com/serve/577d6f54f732774c39000022.js";

var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(pa, s);

I am inserting this tracking script into a Woocommerce website and need to update the portion that asks for the Product ID and uncomment that line.

I cannot find the proper Woocommerce product ID tag. Any suggestions? Thanks in advance.

分享给朋友:
您可能感兴趣的文章:
随机阅读: