วิธีตั้งค่าการติดตามเว็บแอนะลิติกส์
2 นาที
ฟีเจอร์นี้ช่วยให้สามารถผสานการทำงานกับเครื่องมือวิเคราะห์เว็บต่างๆ ได้มากมาย เนื่องจากเครื่องมือเหล่านั้นทำงานโดยการโหลดโค้ด js เล็กๆ หากคุณตัดสินใจใช้ google analytics นี่คือสิ่งที่คุณต้องทำ google analytics 4 เป็นโซลูชันการวัดผลรุ่นถัดไปที่มาแทน universal analytics เมื่อวันที่ 1 กรกฎาคม 2023 คุณสมบัติ universal analytics แบบมาตรฐานได้หยุดประมวลผลข้อมูลใหม่แล้ว หากคุณยังพึ่งพา universal analytics เราขอแนะนำให้คุณเปลี่ยนไปใช้ google analytics 4 ในการเพิ่มโค้ดติดตาม google analytics ให้กับพอร์ทัลเอกสารของคุณ คุณจะต้องใช้โค้ดที่เรียกว่า “ global site tag ” คุณสามารถค้นหาสิ่งนี้ได้ในแดชบอร์ดผู้ดูแลระบบของ google analytics โดยไปที่โค้ดติดตามภายใต้ admin > data streams > web stream details คัดลอก global site tag ด้านล่างไปยังช่อง custom javascript ภายใต้ space settings > custom code ตรวจสอบให้แน่ใจว่าคุณได้แทนที่คำว่า insert measurement id ด้วย id ของคุณเอง \<! global site tag (gtag js) google analytics > \<script async src="https //www googletagmanager com/gtag/js?id=g 80b7mqz06b">\</script> \<script> window\ datalayer = window\ datalayer || \[]; function gtag(){datalayer push(arguments);} gtag('js', new date()); gtag('config', '{insert measurment id}'); \</script> หลังจากเพิ่มโค้ดแล้ว ให้คลิก save และเผยแพร่ไปยัง production ด้วยเหตุผลด้านความปลอดภัย custom code จะถูกนำไปใช้เฉพาะเมื่อใช้ custom domain เท่านั้น
Have a question?
Our super-smart AI, knowledgeable support team and an awesome community will get you an answer in a flash.
To ask a question or participate in discussions, you'll need to authenticate first.