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

ENB-6995 Query Params update & sendTargetResponse function update Resubmit for #2664 #2682

Merged
merged 3 commits into from
Aug 6, 2024
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
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
3 changes: 2 additions & 1 deletion libs/martech/martech.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,8 @@ function sendTargetResponseAnalytics(failure, responseStart, timeout, message) {
const timeoutTime = roundToQuarter(timeout);
let val = `target response time ${responseTime}:timed out ${failure}:timeout ${timeoutTime}`;
if (message) val += `:${message}`;
window.alloy('sendEvent', {
// eslint-disable-next-line no-underscore-dangle
window._satellite?.track?.('event', {
documentUnloading: true,
xdm: {
eventType: 'web.webinteraction.linkClicks',
Expand Down
5 changes: 3 additions & 2 deletions libs/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -865,8 +865,9 @@ export async function loadMartech({
return true;
}

const query = PAGE_URL.searchParams.get('martech');
if (query === 'off' || getMetadata('martech') === 'off') {
const martechQuery = PAGE_URL.searchParams.get('martech');
const marketingQuery = PAGE_URL.searchParams.get('marketingtech');
if (martechQuery === 'off' || marketingQuery === 'off' || getMetadata('martech') === 'off') {
vgoodric marked this conversation as resolved.
Show resolved Hide resolved
return false;
}

Expand Down