Skip to content

Commit

Permalink
Merge pull request #1749 from 4GeeksAcademy/alesanchezr-patch-5
Browse files Browse the repository at this point in the history
Update actions.js
  • Loading branch information
alesanchezr authored Aug 31, 2023
2 parents c6c2b1a + 320a0de commit b4f5adc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/actions.js
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ export const apply = async (data, session) => {
tagManager("student_application", {
email: _data.email,
formentry_id: _data.id,
attribution_id: _data.attribution_id,
attribution_id: _data.attribution_id.toString(),
referral_key: _data.referral_key,
});

Expand Down Expand Up @@ -271,7 +271,7 @@ export const requestSyllabus = async (data, session) => {
tagManager("request_more_info", {
email: _data.email,
formentry_id: _data.id,
attribution_id: _data.attribution_id,
attribution_id: _data.attribution_id?.toString(),
referral_key: _data.referral_key,
});

Expand Down Expand Up @@ -304,7 +304,7 @@ export const beHiringPartner = async (data, session) => {
setDataLayer({
email: _data.email,
formentry_id: _data.id,
attribution_id: _data.attribution_id,
attribution_id: _data.attribution_id?.toString(),
referral_key: _data.referral_key,
});
return _data;
Expand Down Expand Up @@ -346,7 +346,7 @@ export const newsletterSignup = async (data, session) => {
tagManager("newsletter_signup", {
email: _data.email,
formentry_id: _data.id,
attribution_id: _data.attribution_id,
attribution_id: _data.attribution_id?.toString(),
referral_key: _data.referral_key,
});
return _data;
Expand All @@ -370,7 +370,7 @@ export const outcomesReport = async (data, session) => {
setDataLayer({
email: _data.email,
formentry_id: _data.id,
attribution_id: _data.attribution_id,
attribution_id: _data.attribution_id?.toString(),
referral_key: _data.referral_key,
});
return _data;
Expand Down Expand Up @@ -440,7 +440,7 @@ export const processFormEntry = async (data, session) => {
tagManager("request_more_info", {
email: _data.email,
formentry_id: _data.id,
attribution_id: _data.attribution_id,
attribution_id: _data.attribution_id?.toString(),
referral_key: _data.referral_key,
});
} else
Expand Down

1 comment on commit b4f5adc

@vercel
Copy link

@vercel vercel bot commented on b4f5adc Aug 31, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.