Skip to content

Commit

Permalink
add new showed new cv link event
Browse files Browse the repository at this point in the history
  • Loading branch information
jjtg-nav committed Dec 7, 2020
1 parent 1dfe2aa commit 49fa20e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/header/newCvLink/NewCvLink.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,22 @@ import Cookies from "universal-cookie";
import {NY_CV_URL} from "../../fasitProperties";
import "./NewCvLink.less";
import logAmplitudeEvent from "../../amplitudeTracker";
import {useEffect} from "react";

const NewCvLink = () => {

useEffect(() => {
logAmplitudeEvent('Showed New CV Link', {});
}, []);

const cookies = new Cookies();

const onNewCvNavigationClick = () => () => {
cookies.set('useNewCv', 'true', {
path: '/',
maxAge: (604800 * 8), // 8 weeks
domain: '.nav.no'
})
});

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

0 comments on commit 49fa20e

Please sign in to comment.