Skip to content

Commit

Permalink
Conversion of drift campaign Id to integer.
Browse files Browse the repository at this point in the history
  • Loading branch information
nimithshetty17 committed Oct 12, 2023
1 parent cffa024 commit 7c3fc2d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion blocks/marketo/marketo.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ const loadScript = (url, attrs) => {
};

const embedMarketoForm = (marketoId, formId, successUrl, driftCampaignID, fastlaneEnable) => {
console.log('***Number(driftCampaignID)', Number(driftCampaignID));

Check warning on line 24 in blocks/marketo/marketo.js

View workflow job for this annotation

GitHub Actions / build

Unexpected console statement
console.log('***Number(driftCampaignID)', driftCampaignID);

Check warning on line 25 in blocks/marketo/marketo.js

View workflow job for this annotation

GitHub Actions / build

Unexpected console statement
if (formId && marketoId) {
const mktoScriptTag = loadScript('//go.merative.com/js/forms2/js/forms2.min.js');
mktoScriptTag.onload = () => {
Expand All @@ -32,7 +34,7 @@ const embedMarketoForm = (marketoId, formId, successUrl, driftCampaignID, fastla
// Adding drift script for chatbot
if (fastlaneEnable) {
drift.api.collectFormData(values, {
campaignId: driftCampaignID,
campaignId: Number(driftCampaignID),
followupUrl: '/thank-you',
});
}
Expand Down

0 comments on commit 7c3fc2d

Please sign in to comment.