Conversion value in JS (LO Checkout)
I am using custom code to fire conversions with a 3rd party developer. I am working off this resource https://developer.blackbaud.com/skyapi/products/bbms/payments/checkout/transaction-parameters
The conversion is firing appropriately but the dot notation I am using to set conversion value isn't working. I attached the code snippet here for you to review. How can I use JS to pull in dynamic values?
document.addEventListener('checkoutComplete', function (event) {
var shoppingCartValue = data.amount;
feathr(
'convert',
'66292548d2c70df5e49cd64d',
{
amount: shoppingCartValue, // number, required
currency: 'USD', // string, optional, defaults to 'USD'
category: 'Conversion' // string, optional, defaults to 'Conversion'
}
);
});
Comments
-
Hey @Kelly Bodie, looks like you're not accessing the event when setting your variable. You could try:
document.addEventListener('checkoutComplete', function (event) {
var shoppingCartValue = event.detail.amount;
feathr(
'convert',
'66292548d2c70df5e49cd64d',
{
amount: shoppingCartValue,
currency: 'USD',
category: 'Conversion'
}
);
});0 -
@Matt Thacker
Thank you! I fired a test off and send it to my developer. I'll circle back.0 -
@Kelly Bodie
While I don't know what you are trying to do with this code and what is feathr() as a function intake as parameter, you might want to make sure your “event” object actually has the data property on it that is the JSON returned by the API call. You can use console.log(event) to see what is “loaded” into event object or just alert(event).Not trying to be unfriendly, but generally “less inclined” to help when you are already working with a hired developer, I expect that the developer should know better as a hired professional on doing the work that was paid to do.
1 -
@Alex Wong
I appreciate the insight and candor! From my limited understanding while debugging on a call with them, we thought the BB resource we were using was faulty or incomplete. Before bringing the question to this community discussion, I tried bringing it directly to support chat. Now with your notes, I think perhaps familiarity with this API is also a factor, and you're right to point out it's kinda crummy.I am also in line to get BB professional services to help and it's taking forever and a day. I'm not even sure they'll be able to help.
As the nonprofit in the middle, I am extremely thankful for the help in this community! I have a summer campaign launching at the end of this month and I need this code complete.
thanks!
0 -
@Kelly Bodie
You can have the developer try what Matt has suggested as well as my suggestion on outputting the event object's information. Also rather than you being in the middle between the developer and this Community of helpers, it may be better that you have the developer directly post his issue here to get help.I am not sure if BB profressional services has SKY API capability. You should reach out to your account rep to ensure BB profressional services that you are in line for is capable of what you are attempting to do.
@Heather McLean @Erik Leaver I think you may have better answer regarding if BB professional services can help with SKY API project.
1 -
@Alex Wong Our services team can help advise on SKY API questions but won't write APIs. But this also sounds like @Kelly Bodie's consultant is using the LO APIs so the team who would be involved might be a little different. In any case, it sounds like Kelly has engaged services. But this sounds less like a API question & more of a JS issue with the 3rd party tracking.
0 -
I connected and got this answered with the services team. The issue was more or less hunting down the correct field name to fetch - he found it through some sleuthing.
Thanks to you all for your input. I'm glad this is solved! However, I know it's a temporary solution because LO Checkout in the S-tag is going away. Once I'm in a modal/embedded form, I'll have to restart the whole Pixel process.
0
Categories
- All Categories
- 6 Blackbaud Community Help
- 213 bbcon®
- 1.4K Blackbaud Altru®
- 400 Blackbaud Award Management™ and Blackbaud Stewardship Management™
- 1.1K Blackbaud CRM™ and Blackbaud Internet Solutions™
- 15 donorCentrics®
- 360 Blackbaud eTapestry®
- 2.6K Blackbaud Financial Edge NXT®
- 655 Blackbaud Grantmaking™
- 576 Blackbaud Education Management Solutions for Higher Education
- 3.2K Blackbaud Education Management Solutions for K-12 Schools
- 939 Blackbaud Luminate Online® and Blackbaud TeamRaiser®
- 84 JustGiving® from Blackbaud®
- 6.6K Blackbaud Raiser's Edge NXT®
- 3.7K SKY Developer
- 248 ResearchPoint™
- 119 Blackbaud Tuition Management™
- 165 Organizational Best Practices
- 241 Member Lounge (Just for Fun)
- 34 Blackbaud Community Challenges
- 34 PowerUp Challenges
- 3 (Open) PowerUp Challenge: Chat for Blackbaud AI
- 3 (Closed) PowerUp Challenge: Data Health
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Product Update Briefing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports+
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Email Marketing
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Gift Management
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Event Management
- 3 (Closed) Raiser's Edge NXT PowerUp Challenge: Home Page
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Standard Reports
- 4 (Closed) Raiser's Edge NXT PowerUp Challenge: Query
- 790 Community News
- 2.9K Jobs Board
- 53 Blackbaud SKY® Reporting Announcements
- 47 Blackbaud CRM Higher Ed Product Advisory Group (HE PAG)
- 19 Blackbaud CRM Product Advisory Group (BBCRM PAG)



