• Microsoft Ads conversion tracking requires me to add the following to Google Tag Manager for the WC order complete URL:

    <script> 
    // Add this script right after your base UET tag code
    window.uetq = window.uetq || [];
    window.uetq.push('set', { 'pid': { 'em': 'contoso@example.com', // Replace with the variable that holds the user's email address. 'ph': '+14250000000', // Replace with the variable that holds the user's phone number. } }); </script>
    <script> window.uetq = window.uetq || []; window.uetq.push('event', '', {"revenue_value":Replace_with_Variable_Revenue_Function(),"currency":"AUD"}); </script>

    Can you help me fill out the JS WC variables, please?

Viewing 1 replies (of 1 total)
  • Plugin Support shahzeen(woo-hc)

    (@shahzeenfarooq)

    Hi @srd75!

    Thank you for reaching out.

    The code you’ve shared relates to configuring Microsoft Ads conversion tracking through Google Tag Manager, which involves custom JavaScript and third-party service integration.

    Providing implementation guidance for custom tracking scripts, JavaScript variables, and third-party marketing platform integrations falls outside the scope of support we can provide in this forum. We primarily support WooCommerce core features and functionality.

    For assistance with mapping WooCommerce order data (such as customer email, phone number, order total, and currency) to Microsoft Ads conversion tracking variables, I recommend consulting the Microsoft Ads documentation or reaching out to their support team. You may also wish to consult the documentation and support resources for your Google Tag Manager setup, as the exact implementation can vary depending on how your data layer is configured.

    If you need more in-depth support or want to consider professional assistance for customization, I can recommend WooExperts and Codeable.io as options for getting professional help.

    Alternatively, you can also ask your development questions in the  WooCommerce Community Slack 

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.