Skip to content

Commit

Permalink
fixing google-analytics
Browse files Browse the repository at this point in the history
  • Loading branch information
soulaimaneyahya committed May 25, 2024
1 parent 5a3cee6 commit af185e1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ export default function (Vue, { head, isClient }) {
if (isClient) {
const script = document.createElement('script');
script.async = true;
script.src = `https://www.googletagmanager.com/gtag/js?id=G-RQWETTJBTY`;
script.src = `https://www.googletagmanager.com/gtag/js?id=G-8HL91MW1S3`;
document.head.appendChild(script);

script.onload = () => {
window.dataLayer = window.dataLayer || [];
function gtag(){ dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'G-RQWETTJBTY');
gtag('config', 'G-8HL91MW1S3');
};
}

Expand Down

0 comments on commit af185e1

Please sign in to comment.