Best practice to paste Goolge Tags and Facebook Pixel code into website via database?
Would it be OK… if a client paste javascript into a database table to be used for google analytics and pixel good… is that good or bad practice. As they normally get these scripts to copy and paste into their sites… so would one create a “longtext” field and just let the user paste this into the table? and then just query that as per normal?
<script async src="https://www.googletagmanager.com/gtag/js?id=G-12346789sample"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-12346789sampleL');
</script>
Community Page
Last updated:
Last updated: