Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PM-268: Enhance CTA tracking by identifying block names and their indices #305

Merged
merged 87 commits into from
Jan 7, 2025
Merged
Changes from all commits
Commits
Show all changes
87 commits
Select commit Hold shift + click to select a range
fb0871d
#181 Fix styles of pet-tags/tag-quote and pet-tags/tag-select (#182)
miakobchuk Aug 6, 2024
7ad2286
hotfix for change domain
miakobchuk Aug 7, 2024
4c4d79b
adding additional environment entry to config
miakobchuk Aug 8, 2024
19b96ad
updated trusted site block
miakobchuk Aug 8, 2024
7c16136
Menu links refactoring (#188)
miakobchuk Aug 9, 2024
760d840
PM-361
miakobchuk Aug 13, 2024
ec80ebd
PM-361
miakobchuk Aug 13, 2024
61de609
Merge remote-tracking branch 'refs/remotes/origin/stage' into develop
BaDos Aug 14, 2024
4f3a98a
updated document-based footer
miakobchuk Aug 16, 2024
c646d3a
added x icon for footer
miakobchuk Aug 16, 2024
dd27d15
removed external icon for petmicrochiplookup.org link
miakobchuk Aug 16, 2024
472442a
Merge remote-tracking branch 'refs/remotes/origin/stage' into develop
BaDos Aug 22, 2024
3f7a07e
Merge remote-tracking branch 'refs/remotes/origin/main' into stage
BaDos Aug 30, 2024
433f2fd
Merge remote-tracking branch 'refs/remotes/origin/stage' into develop
BaDos Aug 30, 2024
9b9a03e
Merge remote-tracking branch 'refs/remotes/origin/main' into stage
BaDos Sep 10, 2024
941bf8c
Merge remote-tracking branch 'refs/remotes/origin/stage' into develop
BaDos Sep 10, 2024
ba32c40
24PW: Post Purchase Thank You Page - EDS Build (#201)
hero-dokane Sep 11, 2024
ef8d162
24PW: Post Purchase Thank You Page - EDS Build - QA Feedback Updates …
hero-dokane Sep 12, 2024
dc21b70
24PW: Post Purchase Thank You Page - EDS Build - QA Feedback Updates …
hero-dokane Sep 13, 2024
f155c78
Fixes for the form issues (#205)
BaDos Sep 16, 2024
d06bf4d
Feature/post purchase thank you page (#206)
hero-dokane Sep 16, 2024
9217777
Sync develop into stage (#207)
BaDos Sep 16, 2024
9c7dc18
24PW: Membership V2 Paid Page - EDS Build (#208)
hero-dokane Sep 17, 2024
e386258
24PW: Membership V2 Paid Page - QA Updates (#209)
hero-dokane Sep 17, 2024
9dc8710
Add page /paid/lost-pet-protection (#194)
hero-dokane Sep 18, 2024
1f49990
24PW: Membership V2 Paid Page - QA Updates (#211)
hero-dokane Sep 18, 2024
95c0d6b
Fix config matching (#212)
BaDos Sep 18, 2024
510df5e
Merge remote-tracking branch 'origin/stage' into develop
BaDos Sep 18, 2024
866cd49
24PW: Lost Pet Recovery Paid Page - EDS Build (#210)
hero-dokane Sep 18, 2024
d53e374
Sync develop into stage (#213)
BaDos Sep 18, 2024
909c0f5
Sync develop into stage (#213) (#214)
BaDos Sep 18, 2024
9f26a83
Fix css (#216)
BaDos Sep 25, 2024
510aede
Merge branch 'develop' into stage
fe-lix- Sep 25, 2024
aaec9fa
24PW: New Template - Paid Blog (#219)
hero-dokane Oct 3, 2024
b65b41b
24PW: Pawpack Page - EDS Build (#215)
hero-dokane Oct 3, 2024
c1a242e
Merge remote-tracking branch 'origin/main' into stage
BaDos Oct 3, 2024
68d13c8
Merge remote-tracking branch 'origin/stage' into develop
BaDos Oct 3, 2024
643de65
Added Shipping of Tag to the summary page (#221)
BaDos Oct 4, 2024
316c81e
Sync develop into stage (#220)
hero-dokane Oct 4, 2024
e00a58f
24PW: Pawpack Page - EDS Build - QA Feedback (#222)
hero-dokane Oct 7, 2024
07d5622
Merge branch stage into develop
hero-dokane Oct 7, 2024
31f4da7
WIP on bugfix/mobile-nav-redirect-visibility (#224)
hero-dokane Oct 7, 2024
d533307
Sync develop into stage (#223)
hero-dokane Oct 7, 2024
2392032
24PW: Pet Insurance - Aggregator Widget (#225)
pgilmore-phi Oct 8, 2024
ba35c4d
Revert decorateButtons function, apply callout cta styling (#226)
hero-dokane Oct 8, 2024
d5d7dbe
Sync develop into stage (#227)
hero-dokane Oct 8, 2024
66e50df
Adding thank you page dataLayer object (#230)
pgilmore-phi Oct 11, 2024
1b08b7c
Sync develop into stage (#231)
pgilmore-phi Oct 11, 2024
47026d2
Back sync develop with main (#234)
pgilmore-phi Oct 15, 2024
b99d1fe
Back Sync stage with main (#233)
pgilmore-phi Oct 15, 2024
d2a50c3
Merge feature pm 568 abandon cart changes into develop for testing (#…
pgilmore-phi Oct 15, 2024
95e36b9
Feature pm 568 abandon cart: update species ID ternary condition (#237)
pgilmore-phi Oct 15, 2024
eafd2e3
Salesforce Abandoned Cart: refactored payload (#239)
pgilmore-phi Oct 16, 2024
4bceb66
Salesforce Abandoned Cart: Add upsert on thank you page (#241)
pgilmore-phi Oct 17, 2024
00210f0
Added condition to load paid blog header fragment based on paid blog …
pgilmore-phi Oct 17, 2024
08b8290
wrap tracking data inside ecommerce object (#242)
pgilmore-phi Oct 17, 2024
0117118
dataLayer updates: add currency to purchase event (#243)
pgilmore-phi Oct 18, 2024
b0ba7ac
Hotfix: DL purchase event , adding ecommerce object and currency valu…
pgilmore-phi Oct 18, 2024
4582876
Sync Sprint 22 deploy to Stage (#249)
pgilmore-phi Oct 21, 2024
07bddf7
Update header logo svg file and sizes in CSS (#245)
Mao8a Oct 22, 2024
50f61d7
Sync to Dev: Feature/pm 563 dl add to cart (#251)
hero-dokane Oct 23, 2024
2d02414
Sync to DEV: Updating purchase event DL with new requirements (#252)
pgilmore-phi Oct 23, 2024
4ef1344
Sync to DEV: Ensuring shipping value is returned as a number type in …
pgilmore-phi Oct 23, 2024
638eabd
Sync to Stage: Hotfix for purchase event DL (#258)
pgilmore-phi Oct 23, 2024
6dfb171
GitHub pull request template update (#259)
hero-dokane Oct 24, 2024
67c43e1
Sync to DEV: PM -564 Cart Summary DL events (#262)
pgilmore-phi Oct 25, 2024
b9f0286
Sync to Dev: Feature/pm 563 dl add to cart (#263)
hero-dokane Oct 25, 2024
4f0ea78
Feature/pm 573 logo size on header-only-logo (#254)
Mao8a Oct 28, 2024
bb9d1e3
Sync to Dev: Feature/pm 563 dl add to cart - step 2 (#265)
hero-dokane Oct 28, 2024
a06757f
Remove pet tags cookie on thank you page (#266)
hero-dokane Oct 28, 2024
e26de26
Merge branch 'stage' into develop
pgilmore-phi Oct 28, 2024
79fc474
Merge remote-tracking branch 'origin/main' into develop
pgilmore-phi Oct 29, 2024
7aaa492
PM-639 Update 'add to cart' DL product type values (#269) (#270)
pgilmore-phi Oct 30, 2024
6d933e8
Release/sprint 22 fast follow (#272)
pgilmore-phi Oct 30, 2024
a869cec
Merge remote-tracking branch 'origin/main' into develop
pgilmore-phi Oct 31, 2024
cef3bf6
WIP on bugfix/PM-637-ca-pet-tags (#275)
hero-dokane Nov 5, 2024
6b9a875
Sync Release/Sprint 23 to Develop (#279)
hero-dokane Nov 13, 2024
774b2ad
Merge remote-tracking branch 'origin/main' into develop
pgilmore-phi Nov 15, 2024
32894e1
PM-375: Costco Figo Promotion (#283) (#285)
pgilmore-phi Nov 21, 2024
aac3c9e
Sync costco figo changes to develop (#289)
pgilmore-phi Nov 25, 2024
b3c079d
Merge remote-tracking branch 'origin/main' into develop
pgilmore-phi Nov 25, 2024
a759a68
Sync costco figo changes to develop - update eligibility rules (#292)
pgilmore-phi Nov 26, 2024
62d2004
Sync costco figo changes to develop (#295)
pgilmore-phi Nov 27, 2024
962f936
Sync costco figo changes to develop (#299)
pgilmore-phi Dec 4, 2024
f6d5450
Merge remote-tracking branch 'origin/main' into develop
pgilmore-phi Dec 9, 2024
5dd770e
Merge branch 'main' into develop
hero-dokane Dec 18, 2024
9cbf2b4
Enhance CTA tracking by identifying block names and their indices
Mao8a Dec 27, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 8 additions & 1 deletion scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,14 @@ function instrumentTrackingEvents(main) {
trackCTAEvent(ctaLocation);
return;
} else {
trackCTAEvent(null);
const containerBlock = e.target.closest('[data-block-name]');
const blockList = document.querySelectorAll(`[data-block-name=${containerBlock.dataset.blockName}]`);
blockList.forEach((block, key) => {
if (block === containerBlock) {
ctaLocation = `${containerBlock.dataset.blockName}_${key}`;
}
});
trackCTAEvent(ctaLocation);
return;
}
}
Expand Down
Loading