Skip to content

Commit

Permalink
Add LUX custom data to CTA
Browse files Browse the repository at this point in the history
  • Loading branch information
csswizardry committed Jun 25, 2024
1 parent 6246784 commit 16ae279
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion _includes/sub-content.html
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,28 @@
<hr>

<p class=text-banner>
<a href=/code-reviews/?utm_source=sidebar&utm_medium=internal#fix-it-fast class="btn btn--full btn--positive" data-sctrack=cta-sidebar elementtiming=cta-sidebar>{% include cta.md %}</a>
<a href=/code-reviews/?utm_source=sidebar&utm_medium=internal#fix-it-fast class="btn btn--full btn--positive" id=cta data-sctrack=cta-sidebar elementtiming=cta-sidebar>{% include cta.md %}</a>
<script>
performance.mark("ctaSidebar");
</script>
</p>

<script>
(() => {

const cta = document.getElementById('cta');

cta.addEventListener('click', (event) => {

setTimeout(() => {
LUX.addData('ctaClicked', true)
});

});

})();
</script>

<h4>Projects</h4>

{% if page.page-class == "page--home" %}
Expand Down

0 comments on commit 16ae279

Please sign in to comment.