• Resolved fabianspring

    (@fabianspring)


    Hi, great AddOn. I just wish to add a Facebook Standard-Event once a payment was triggered and wonder if that was possible somewhere.
    I guess if it goes somewhere in the PHP source it should probably look something like this:

    `<script>
    fbq(“track”, “Purchase”, {value: “<?php print esc_attr($amount); ?>”, currency: “<?php print esc_attr(get_option(‘sd_paypal_currency’, SD_PAYPAL_LANGUAGE)); ?>”});
    </script>

    Thank you
    Fabian

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author codepeople

    (@codepeople)

    Hello Fabian,

    In this case would be required customize your copy of the plugin. You can include the javascript code directly in the download page, but as you need the currency and payment amount, would be required to read the database information before generate the javascript code.

    If you need a custom coding service, do not hesitate in contact me through my private website:

    https://wordpress.dwbooster.com/support

    Best regards.

    Thread Starter fabianspring

    (@fabianspring)

    Hi,
    thank you for your fast response. You helped me already as I’ll just use a different event for now in the download page.
    Once I need to go deeper intp detail with this including the price etc. I’ll get back to you.

    Best regards
    Fabian

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Add FB-Pixel-Event’ is closed to new replies.