Skip to content

Commit

Permalink
add amplitude event for new cv link
Browse files Browse the repository at this point in the history
  • Loading branch information
jjtg-nav committed Dec 7, 2020
1 parent 912d728 commit 1dfe2aa
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/header/newCvLink/NewCvLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ import * as React from "react";
import Cookies from "universal-cookie";
import {NY_CV_URL} from "../../fasitProperties";
import "./NewCvLink.less";
import logAmplitudeEvent from "../../amplitudeTracker";

const NewCvLink = () => {
const cookies = new Cookies();
Expand All @@ -12,6 +13,8 @@ const NewCvLink = () => {
maxAge: (604800 * 8), // 8 weeks
domain: '.nav.no'
})

logAmplitudeEvent('Use new CV', {});
};

if (cookies.get('newCvRolloutGroup') !== 'true') {
Expand Down

0 comments on commit 1dfe2aa

Please sign in to comment.