Jump to content

How to track sales in WHMCS with Facebook Pixel?


Looper

Recommended Posts

I added Facebook Pixel code using a hook, and it's working just fine. However, I want to set up an event to capture sales, such as when someone makes a purchase. How can I track that in WHMCS?

I used this hook to add the pixel:

brave_bE5BxPkfd3.png.9ecaff5526eae6147e6874b462e852b7.png

Link to comment
Share on other sites

  • 1 month later...

Well for starters you can do the following in your templates complete.tpl file

Under:

        {if $ispaid}
            <!-- Enter any HTML code which should be displayed when a user has completed checkout here -->
            <!-- Common uses of this include conversion and affiliate tracking scripts -->

 

Add something like below:


        {literal}
                  <script>
                        fbq('track', 'Purchase', {currency: "AED", value: 1.00});

                  </script>                      
        {/literal}

 

 

I think the above could work.

Link to comment
Share on other sites

On 9/11/2024 at 4:30 PM, Looper said:

I added Facebook Pixel code using a hook, and it's working just fine. However, I want to set up an event to capture sales, such as when someone makes a purchase. How can I track that in WHMCS?

I used this hook to add the pixel:

brave_bE5BxPkfd3.png.9ecaff5526eae6147e6874b462e852b7.png

I am facing the same problem, have you found any working solution yet?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated