121117 added event triggers
This commit is contained in:
@@ -7,6 +7,7 @@ import { connect } from "react-redux";
|
||||
import transLookup from "../../data/lookuptranslations.json";
|
||||
import { formatDates } from "../utils";
|
||||
import PaginationControl from "./pagination";
|
||||
import { sendGAEvent } from "@next/third-parties/google";
|
||||
|
||||
import {
|
||||
getSearchDocumentDetails,
|
||||
@@ -66,9 +67,6 @@ const DocumentDetails = (props) => {
|
||||
console.log(currentDate);
|
||||
|
||||
var valid = startDate < currentDate && endDate > currentDate;
|
||||
|
||||
console.log(valid);
|
||||
|
||||
ShowDocLinks = valid;
|
||||
};
|
||||
|
||||
@@ -307,7 +305,17 @@ const DocumentDetails = (props) => {
|
||||
}
|
||||
key={key}
|
||||
onClick={() => {
|
||||
toggleDownLoadLink(key);
|
||||
toggleDownLoadLink(key),
|
||||
sendGAEvent(
|
||||
"event",
|
||||
"DownloadedFile",
|
||||
{
|
||||
caseReference:
|
||||
props.caseReference,
|
||||
filename:
|
||||
detailsObj.pinswg_name,
|
||||
}
|
||||
);
|
||||
}}
|
||||
>
|
||||
<span className="results-visually-hidden">
|
||||
|
||||
Reference in New Issue
Block a user