Skip to content

Commit

Permalink
lint fixing
Browse files Browse the repository at this point in the history
  • Loading branch information
cuzuco2 committed Jan 31, 2024
1 parent 17f560f commit 421d4c3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions solutions/scripts/analytics/lib-analytics.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ function enhanceAnalyticsEvent(options) {
...options.xdm[CUSTOM_SCHEMA_NAMESPACE],
// ...(experiment && { experiment }), // add experiment details, if existing, to all events
};
//console.debug(`enhanceAnalyticsEvent complete: ${JSON.stringify(options)}`);
// console.debug(`enhanceAnalyticsEvent complete: ${JSON.stringify(options)}`);
}

/**
Expand Down Expand Up @@ -110,7 +110,7 @@ function createInlineScript(document, element, innerHTML, type) {
async function sendAnalyticsEvent(xdmData, data) {
// eslint-disable-next-line no-undef
if (!alloy) {
//console.warn('alloy not initialized, cannot send analytics event');
// console.warn('alloy not initialized, cannot send analytics event');
return Promise.resolve();
}

Expand Down Expand Up @@ -174,7 +174,7 @@ export async function analyticsTrackPageViews(document /* , additionalXdmFields
return new Promise((resolve) => {
window.adobeDataLayer.push((dl) => {
const state = dl.getState();
//console.debug(`analyticsTrackPageViews complete: ${JSON.stringify(state)}`);
// console.debug(`analyticsTrackPageViews complete: ${JSON.stringify(state)}`);
resolve(sendAnalyticsEvent(xdmData, state));
});
});
Expand All @@ -196,7 +196,7 @@ export async function initAnalyticsTrackingQueue() {
export async function setupAnalyticsTrackingWithAlloy(document) {
// eslint-disable-next-line no-undef
if (!alloy) {
//console.warn('alloy not initialized, cannot configure');
// console.warn('alloy not initialized, cannot configure');
return;
}
// eslint-disable-next-line no-undef
Expand Down
8 changes: 4 additions & 4 deletions solutions/scripts/delayed.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,24 @@
import {
loadScript,
sampleRUM,
//fetchPlaceholders,
// fetchPlaceholders,
getMetadata,
} from './lib-franklin.js';

// eslint-disable-next-line import/no-cycle
import {
getLanguageCountryFromPath,
// getLanguageCountryFromPath,
pushProductsToDataLayer,
pushToDataLayer,
//getEnvironment,
// getEnvironment,
openUrlForOs,
} from './scripts.js';
import { loadBreadcrumbs } from './breadcrumbs.js';

// Core Web Vitals RUM collection
sampleRUM('cwv');

/*const LANGUAGE_COUNTRY = getLanguageCountryFromPath(window.location.pathname);
/* const LANGUAGE_COUNTRY = getLanguageCountryFromPath(window.location.pathname);
const LAUNCH_URL = 'https://assets.adobedtm.com';
const ENVIRONMENT = getEnvironment(window.location.hostname, LANGUAGE_COUNTRY.country);
// Load Adobe Experience platform data collection (Launch) script
Expand Down
2 changes: 1 addition & 1 deletion solutions/scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import {
import {
initAnalyticsTrackingQueue,
setupAnalyticsTrackingWithAlloy,
//analyticsTrackPageViews,
// analyticsTrackPageViews,
} from './analytics/lib-analytics.js';

const LCP_BLOCKS = ['hero']; // add your LCP blocks to the list
Expand Down

0 comments on commit 421d4c3

Please sign in to comment.