Reply To: Facebook Pixel Dynamic Value based on Selected Menu

Home Forums Quform WordPress Facebook Pixel Dynamic Value based on Selected Menu Reply To: Facebook Pixel Dynamic Value based on Selected Menu

#32527
AudiojungleDaniel
Participant

Hi, and thanks for your help the problem with the Facebook pixel and the Dynamic Value based on the Amount that is selected in the dropdown menu in the form.

Im trying to get the same result on my new site with this landing-page with no luck.

Black Bush

Same problem here as above. The price for the bottle is 369 Kr. And if I add 2 bottles it should end up with
369 Kr x 2. But it ends up with only as one bottle. I use the code below in the java Scrips field.

The Dropdown has a Unique Identifier. In this case it is: 18_38.

jQuery(function ($) {
$(‘.quform-form-18’).on(‘quform:successStart’, function () {
if (window.fbq) {
var value = 369.00,
selectValue = $(‘.quform-field-18_38’).val();

if(selectValue && $.isNumeric(selectValue)) {
value = value * parseInt(selectValue, 10);
}

fbq(‘track’, ‘Purchase’, {value: value, currency: ‘SEK’});
}
});
});

Attachments:
You must be logged in to view attached files.
Be inspired. © 2024 ThemeCatcher Ltd. 20-22 Wenlock Road, London, England, N1 7GU | Company No. 08120384 | Built with React | Privacy Policy