• Resolved lfedele

    (@lfedele)


    Dear support,
    I need help with the following code, I have to customize it in order to make it work for transactions tracking. All parameters with [] should be filled in.

    // First one
    var TDConf = TDConf || {};
    TDConf.Config = {
      products:[
        {id: "[product-id1]", price:"[price1]", currency:"[currency1]", name:"[product-name1]", qty:"[quantity1]"},  
        {id: "[product-id2]", price:"[price2]", currency:"[currency2]", name:"[product-name1]", qty:"[quantity2]"},  
        /*...*/
      ],  
    	containerTagId : "XXXXX"
    };
    
    // Second one
    
    var TDConf = TDConf || {};
    TDConf.Config = {
      products:[
        {id: "[product-id1]", price:"[price1]", currency:"[currency1]", name:"[product-name1]"},  
        {id: "[product-id2]", price:"[price2]", currency:"[currency2]", name:"[product-name2]"},  
        /*...*/
      ],  
      Category_name : "[Name of category products]", 
    	containerTagId : "XXXXX"
    };
    
    // Third one
    
    var TDConf = TDConf || {};
    TDConf.Config = {
    	productId: "[product-id]", 
    	category: "[main-category-name]",
    	brand: "[brand]",  
    	productName: "[product-name]", 
    	productDescription: "[product-description]", 
    	price: "[price]", 
    	currency: "[currency]",
    	url: "[click-url]", 
    	imageUrl: "[url-to-product-image]",
    	containerTagId : "XXXXX"
    };
    
    // Fourth one
    
    var TDConf = TDConf || {};
    TDConf.Config = {
      products:[
        {id: "[product-id1]", price:"[price1]", currency:"[currency1]", name:"[product-name1]",grpId:"[group-product-id1]", qty:"[quantity1]"},  
        {id: "[product-id2]", price:"[price2]", currency:"[currency2]", name:"[product-name1]",grpId:"[group-product-id2]", qty:"[quantity2]"},  
        /*...*/
      ],  
      orderId: "[orderId]", 
      orderValue: "[orderValue]",
      currency: "[currency]",  
      voucherCode: "[voucherCode]",  
      validOn: "[validOn]",
      containerTagId : "XXXXX"
    };

    Could you help, please?

    Thanks in advance.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Luminus Alabi

    (@luminus)

    Automattic Happiness Engineer

    Hi @lfedele,

    I’m not quite sure what you’re trying to do here. It does look like you’d benefit from speaking to or hiring a developer to help you with this, though.

    If you don’t have a go-to developer, perhaps consider contacting one of the services on our customizations page: https://woocommerce.com/customizations/.

    Luminus Alabi

    (@luminus)

    Automattic Happiness Engineer

    Hey @lfedele,

    We haven’t heard back from you in a while, so I’m going to mark this as resolved – if you have any further questions, you can start a new thread.

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Tracking parameters configuration’ is closed to new replies.