Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
mgks committed Dec 28, 2024
1 parent 11978b3 commit f558c5a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions docs/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* Support Smart WebView (https://github.com/sponsors/mgks)
* Acknowledging project sources and developers helps them continue their valuable work. Thank you for your support :)
*/
/*

document.addEventListener('DOMContentLoaded', function() { // use DOMContentLoaded

const input = document.getElementById('add-img');
Expand Down Expand Up @@ -105,11 +105,9 @@ function get_location() {
function print_page(){
window.print();
}
*/

// Function to load gtag.js (Google Analytics)
function load_gtag() {
console.log("Google Analytics (gtag.js) loaded.");

// Create the script tag
var script = document.createElement('script');
script.async = true;
Expand All @@ -126,4 +124,6 @@ function load_gtag() {
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-7XXC1C7CRQ'); // Replace with your actual GA ID

console.log("Google Analytics (gtag.js) loaded.");
}

0 comments on commit f558c5a

Please sign in to comment.