• Resolved irik

    (@irik)


    Hi!

    I’m about to setup a Snapchat pixel on my website, but the script need the Email id and Phone id of my users, and I reckon these are related to Woocommerce?

    Can you please help me to find these variables?

    {
    ‘user_email’: ‘INSERT_USER_EMAIL
    });

    {
    user_phone_number:user.phone_number
    });

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hi @irik

    Thanks for reaching out!

    I’m about to setup a Snapchat pixel on my website, but the script need the Email id and Phone id of my users, and I reckon these are related to Woocommerce?

    Can you please share how Snapchat Pixel is being added to your site?

    If this was added thru a third-party plugin or a custom code, it would be best to reach out to the developers for further assistance here.

    If you’re unsure, please share your System Status Report that you can find via WooCommerce > Status. Select Get system report and then Copy for support. Once you’ve done that, you can paste it into your reply here.

    Thanks!

    Thread Starter irik

    (@irik)

    Hi @xue28

    Thanks for your reply!

    The Snapchat Pixel is being added by inserting a script in the header (I use the WpCode plugin to insert the script in the header). The whole script looks like this (I have bolded the code in mention):??

    <script type='text/javascript'>
    (function(e,t,n){if(e.snaptr)return;var a=e.snaptr=function()
    {a.handleRequest?a.handleRequest.apply(a,arguments):a.queue.push(arguments)};
    a.queue=[];var s='script';r=t.createElement(s);r.async=!0;
    r.src=n;var u=t.getElementsByTagName(s)[0];
    u.parentNode.insertBefore(r,u);})(window,document,
    'https?://sc-static.?net/scevent.min.?js');
    
    snaptr('init', 'xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx', {
    	'user_email': '__INSERT_USER_EMAIL__'
    });
    
    snaptr('track', 'PURCHASE');
    
    </script>
    ?

    Hi @irik

    Thanks for providing further information about your inquiry here.

    These forums are meant for general support with the core functionality of WooCommerce itself. Since custom coding is outside our scope of support, I am leaving this thread open for a bit to see if anyone can chime in to help you out.

    For questions related to development and custom coding, your best bet is to ask on any of these channels for support. We’re lucky to have a great community of open-source developers for WooCommerce, and many of our developers hang out there, too.

    Hope this helps!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Email and phone id’ is closed to new replies.