Skip to content

Commit

Permalink
fix: dont use deprecated setGenerationTimeMs fix #36 (#52)
Browse files Browse the repository at this point in the history
* fix: dont use deprecated setGenerationTimeMs fix #36

* tests: snaps
  • Loading branch information
Julien Bouquillon committed May 11, 2021
1 parent ba84c13 commit b2c6dd5
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 21 deletions.
20 changes: 0 additions & 20 deletions src/__tests__/__snapshots__/matomo.test.ts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,6 @@ Array [
"deleteCustomVariables",
"page",
],
Array [
"setGenerationTimeMs",
0,
],
Array [
"trackPageView",
],
Expand Down Expand Up @@ -126,10 +122,6 @@ Array [
"deleteCustomVariables",
"page",
],
Array [
"setGenerationTimeMs",
0,
],
Array [
"trackSiteSearch",
"some+query",
Expand All @@ -155,10 +147,6 @@ Array [
"deleteCustomVariables",
"page",
],
Array [
"setGenerationTimeMs",
0,
],
Array [
"trackSiteSearch",
"some+query",
Expand All @@ -184,10 +172,6 @@ Array [
"deleteCustomVariables",
"page",
],
Array [
"setGenerationTimeMs",
0,
],
Array [
"trackPageView",
],
Expand All @@ -212,10 +196,6 @@ Array [
"deleteCustomVariables",
"page",
],
Array [
"setGenerationTimeMs",
0,
],
Array [
"trackPageView",
],
Expand Down
1 change: 0 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,6 @@ export function init({
push(["setCustomUrl", pathname]);
push(["setDocumentTitle", document.title]);
push(["deleteCustomVariables", "page"]);
push(["setGenerationTimeMs", 0]);
if (
startsWith(pathname, "/recherche") ||
startsWith(pathname, "/search")
Expand Down

0 comments on commit b2c6dd5

Please sign in to comment.