Skip to content

Commit

Permalink
feat: add experiment details
Browse files Browse the repository at this point in the history
  • Loading branch information
vtsaplin committed Jan 3, 2024
1 parent 808b606 commit 1f47d58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions solutions/scripts/scripts.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,8 @@ export function trackProduct(product) {

export function pushProductsToDataLayer() {
if (TRACKED_PRODUCTS.length > 0) {
// const experimentDetails = getExperimentDetails();
// console.log('experiment details', experimentDetails);
const experimentDetails = getExperimentDetails();
console.log('experiment details', experimentDetails);

Check warning on line 216 in solutions/scripts/scripts.js

View workflow job for this annotation

GitHub Actions / linting

Unexpected console statement
pushToDataLayer('product loaded', {
// ...(experimentDetails && { experimentDetails }),
product: TRACKED_PRODUCTS
Expand Down

0 comments on commit 1f47d58

Please sign in to comment.