Skip to content

Commit

Permalink
Merge pull request #172 from ramoncordini/atualizacao-gtag
Browse files Browse the repository at this point in the history
Atualizacao gtag.js
  • Loading branch information
gitnnolabs authored Jun 27, 2023
2 parents 20038a2 + 0f8abbe commit a551f59
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 8 deletions.
9 changes: 1 addition & 8 deletions application/views/partials/footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@
<script src="<?= get_static_js_path('slick.js') ?>" type="text/javascript" charset="utf-8"></script>
<script src="<?= get_static_js_path('scielo.js') ?>" type="text/javascript" charset="utf-8"></script>
<script src='https://www.google.com/recaptcha/api.js'></script>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-604844-1"></script>

<script>
$(function(){

Expand Down Expand Up @@ -106,12 +105,6 @@
}
});
});

window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());

gtag('config', 'UA-604844-1');
</script>

<?php if (COOKIE_POLICY_ENABLED){ ?>
Expand Down
8 changes: 8 additions & 0 deletions application/views/partials/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,14 @@
<!DOCTYPE html>
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-LVJH6ZZGQ7"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-LVJH6ZZGQ7');
</script>
<title><?= $this->PageMetadata->get_page_title() ?></title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0" />
Expand Down

0 comments on commit a551f59

Please sign in to comment.