Skip to content

Commit

Permalink
Merge pull request #1286 from alphagov/js-spec-improvements
Browse files Browse the repository at this point in the history
Improvements and tidy ups to the JS specs
  • Loading branch information
h-lame authored Feb 8, 2018
2 parents 8ea4b0f + 68d9921 commit 0617b42
Show file tree
Hide file tree
Showing 2 changed files with 348 additions and 299 deletions.
5 changes: 2 additions & 3 deletions app/assets/javascripts/analytics/custom-dimensions.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,14 @@
}
});

customDimensions['dimension23'] = $('main[id="content"]').attr('lang') || 'unknown';

return customDimensions;
}

function customDimensionsFromDom() {
return {
dimension26: GOVUK.PageContent.getNumberOfSections(),
dimension27: GOVUK.PageContent.getNumberOfLinks()
dimension27: GOVUK.PageContent.getNumberOfLinks(),
dimension23: $('main[id="content"]').attr('lang') || 'unknown'
};
}

Expand Down
Loading

0 comments on commit 0617b42

Please sign in to comment.