Home › Forums › Quform WordPress › Facebook Pixel Dynamic Value based on Selected Menu
- This topic has 24 replies, 2 voices, and was last updated 2 years, 9 months ago by
Ally.
- AuthorPosts
- July 1, 2020 at 10:06 am #31593
AudiojungleDaniel
ParticipantHi, thank you for a great Form! I just love Quform for WordPress!
With no code-skills Im trying to ad a correct value in my Facebook Pixel.I used the JavaScript below in the in the Custom JavaScript Section and it works great!
But I need to set up a Dynamic Value based on the Amount that is selected in the dropdown menu in the form. The Dropdown has a Unique Identifier. In this case it is: 27_26.
Can you help me with a fill out the the script correctly for a Dynamic Value based on the selected value in the unique dropdown menu.
For example, If a visitor fill out the form and selects the value 3 in the dropdown and Submit I like to see the value 3×79 in my Facebook ads purchase value.
Possible?jQuery(function ($) {
$(‘.quform-form-27’).on(‘quform:successStart’, function () {
if (window.fbq) {
fbq(‘track’, ‘Purchase’, {value: 79.00, currency: ‘SEK’});
}
});
});Attachments:
You must be logged in to view attached files.July 1, 2020 at 11:01 am #31599Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
July 1, 2020 at 1:19 pm #31600AudiojungleDaniel
ParticipantHi Ally, looks good but it didn’t work. It still shows up a value of 79 in my Facebook Pixel Helper no matter what I select in the dropdown.
Should I add something else or was it meant to just copy paste it in to the Custom JavaScript Section?
I was hoping for if I select 3 bottles in the dropdown it would end up as 3×79=237 SEK
Check for your self here:
- This reply was modified 4 years, 2 months ago by
AudiojungleDaniel.
Attachments:
You must be logged in to view attached files.July 2, 2020 at 10:21 am #31605Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
November 16, 2020 at 3:19 pm #32223AudiojungleDaniel
ParticipantHi, I have 12 licens of Quform and I love it. Is there any way to see a overview what site Im using my different licens on? Like a Dashboard or My pages?
November 17, 2020 at 9:48 am #32226Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
February 11, 2021 at 9:51 am #32527AudiojungleDaniel
ParticipantHi, 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.
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.February 12, 2021 at 10:21 am #32531Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
- This reply was modified 3 years, 6 months ago by
Ally.
September 6, 2021 at 12:54 pm #33401AudiojungleDaniel
ParticipantHi, It seems that we have some issues with the facebook pixel again. Can you take a look?
I created a user for you.
*snip*1. This Product:
Not Working. The is not giving a conversion signal all the way in to the end landing page.2. This Product:
Is Working. The pixel is giving a conversion signal all the way in to the end landing page.- This reply was modified 3 years ago by
Ally. Reason: Removed credentials
Attachments:
You must be logged in to view attached files.September 8, 2021 at 9:25 am #33408Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
September 10, 2021 at 8:46 am #33420AudiojungleDaniel
ParticipantOh, that’s odd. I do not get your emails… So I been looking here and I read this now. Ok, I someone had notised the login in the public forum and erased many of the scripts. From Quform 18 and up.
Anyway, I deleted the user now and I will add every script again and se if its works.
I give you a heads up if this doesn’t solves the problem
October 23, 2021 at 7:17 am #33553AudiojungleDaniel
ParticipantHi, It seems that we have some issues with the facebook pixel again. Can you take a look?
It Works one day and stop making conversation the other day. Can you take a look?
October 25, 2021 at 10:02 am #33559Ally
Support StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
October 25, 2021 at 10:38 am #33561AudiojungleDaniel
ParticipantLet me check. By the way, is this conversation public? Can I change it to non public?
October 25, 2021 at 10:59 am #33563AudiojungleDaniel
ParticipantNo, it do not fire a conversion? Maybe a cookie problem?
Attachments:
You must be logged in to view attached files. - This reply was modified 4 years, 2 months ago by
- AuthorPosts
- You must be logged in to reply to this topic.