Using Analytics and Retargeting Without Violating the PDPA

2 mins read

Published

26 June, 2025

Language

English

Written by

Share

Using Analytics and Retargeting Without Violating the PDPA

In the data-driven world of digital marketing, tools like Google Analytics, Facebook Pixel, and other tracking scripts are vital for measuring user behavior, running ad campaigns, and optimizing content. But with Thailand’s Personal Data Protection Act (PDPA) now fully enforced, businesses must rethink how they usethese tools—because silent tracking and automatic cookies are no longer compliant.

Good news: You can still leverage these platforms, but only if you handle consent properly and document how you collect, store, and share user data. In this article, we’ll explore how to use analytics and retargeting tools under PDPA—and share a case where a travel portal maintained marketing capabilities without breaching privacy laws.

What PDPA Says About Tracking Technologies

Under the PDPA, collecting any personally identifiable data (or using cookies that can track or profile users) must be done with:

  1. Explicit, informed consent

  2. A clear explanation of the data’s purpose

  3. An opt-in mechanism (not opt-out)

  4. The ability for users to change or revoke consent at any time

Tracking cookies, session analytics, and advertising scripts often fall under the category of non-essential data processing—which means you cannot activate them until a user has given permission.

 

What Happens If You Don’t Comply?

  • Your site may be flagged or penalized

  • Users may file privacy complaints

  • You could face fines up to 5 million THB

  • You risk losing customer trust and transparency credibility

Common Non-Compliant Practices

  • Running analytics or Facebook Pixel scripts before consent

  • Not offering users a choice to opt out of tracking

  • Providing vague cookie banners with “By using this site, you agree…”

  • Not documenting when and how users gave consent

  • Failing to explain how third parties use the data

Compliant Use of Analytics and Retargeting: A Framework

1. Pre-Consent Blocking

Do not load tracking scripts until the user explicitly consents. This includes:

  • Google Analytics (unless fully anonymized)

  • Facebook Pixel

  • Heatmaps (Hotjar, Crazy Egg, etc.)

  • Remarketing tags (LinkedIn, TikTok, etc.)

Use tools that support deferred script execution or consent conditionals.

2. Categorize and Explain

Break cookies into categories and clearly explain:

  • Essential (e.g., cart functionality)

  • Analytics (e.g., behavior tracking)

  • Advertising (e.g., retargeting and profiling)

Tell users what each does and who has access to their data.

3. Offer True Choice

Your cookie banner must allow users to:

  • Accept all

  • Reject all

  • Customize preferences by category

All options should be visible and not hidden behind design tricks or hard-to-read buttons.

4. Allow Withdrawal

Users should be able to change their tracking preferences anytime. Offer a “Cookie Settings” link in the footer or account panel.

5. Log Consent

Record when and how users gave consent, including:

  • Timestamp

  • IP address (where possible)

  • Consent categories selected

This is essential for proving compliance if audited.

Real Case: A Travel Portal's Consent-Centric Strategy

A travel booking platform relied heavily on Google Analytics and Facebook Ads for user insights and remarketing. With PDPA enforcement looming, their setup raised red flags:

  • Tracking scripts loaded by default

  • No real opt-out for cookies

  • Users had no visibility on data-sharing with Facebook

What They Did:

  • Replaced their cookie banner with a pre-consent screen

  • Deferred analytics and advertising scripts until consent was granted

  • Updated the Privacy Policy to include third-party data processors and purposes

  • Provided a real-time toggle in the footer to manage cookie settings

The Results:

  • User opt-in rate for analytics stabilized at 68%

  • Advertising ROAS remained steady, thanks to quality opt-ins

  • Trust scores improved in customer feedback surveys

  • Legal team confirmed PDPA compliance

This balance between privacy and performance allowed them to continue scaling their digital marketing—without legal risk.

 

Tools to Help You Stay Compliant

  • Cookiebot or OneTrust: Consent management platforms

  • Google Consent Mode: Enables conditional script loading based on consent

  • Tag Manager Custom Triggers: Load analytics only after opt-in

  • Custom scripts: For minimal, flexible cookie implementation

UX Tips for Consent Banners

  • Use high-contrast buttons (don’t make “Reject” a hidden link)

  • Ensure it’s mobile-friendly and non-intrusive

  • Provide a clear, one-sentence explanation for each cookie type

  • Allow easy customization without forcing a full rejection

 

Conclusion: 

PDPA doesn’t block analytics or retargeting—it just demands that you ask first. With the right technical setup and honest, user-centric messaging, you can continue to gain insights, run effective campaigns, and stay fully compliant.

Privacy and performance are not mutually exclusive. Done right, respecting your users’ choices can lead to better data, stronger trust, and more sustainable marketing

Written by
Opal Piyaporn Kijtikhun
Opal Piyaporn Kijtikhun

Share

Keep me posted
to follow product news, latest in technology, solutions, and updates

More than 120,000 people/day  visit to read our blogs

Related articles

Explore all

Inbound Marketing การตลาดแห่งการดึงดูด
Inbound Marketing การตลาดแห่งการดึงดูด
การทำการตลาดในปัจจุบันมีรูปแบบที่เปลี่ยนไปจากเดิมมากเพราะวิธีที่ได้ผลลัพธ์ที่ดีในอดีตไม่ได้แปลว่าจะได้ผลลัพธ์ที่ดีในอนาคตด้วยเสมอไปประกอบการแข่งขันที่สูงขึ้นเรื่อยๆทำให้นักการตลาดต้องมีการปรับรูปแบบการทำการตลาดในการสร้างแรงดึงดูดผู้คนและคอยส่งมอบคุณค่าเพื่อให้เข้าถึงและสื่อสารกับกลุ่มเป้าหมายได้อย่างมีประสิทธิภาพ Inbound Marketing คืออะไร Inbound Marketing คือ การทำการตลาดผ่าน Content ต่างๆ เพื่อดึงดูดกลุ่มเป้าหมายเข้ามา และตอบสนองความต้องการของลูกค้า โดยอาจจะทำผ่านเว็บไซต์ หรือผ่านสื่อ Social Media ต่าง ๆ ซึ่งในปัจจุบันนั้น Inbound Marketing เป็นที่นิยมมากขึ้นเพราะเครื่องมือและเทคโนโลยีที่พัฒนาขึ้นมาในปัจจุบันทำให้การทำการตลาดแบบ Inbound Marketing นั้นทำง่ายกว่าเมื่อก่อนมาก นอกจากนี้การทำ Inbound Marketing ยังช่วยสร้างความสัมพันธ์และความน่าเชื่อถือให้กับธุรกิจได้เป็นอย่างดีอีกด้วย หลักการของ Inbound Marketing Attract สร้าง
03 May, 2026

by

Preview email ด้วย Letter Opener
Preview email ด้วย Letter Opener
Letter Opener เป็น gem ของ ที่ใช้แสดงรูปแบบของอีเมลที่เราต้องการจะส่ง ก่อนที่จะส่งจริง เพื่อให้ง่ายและไวต่อการทดสอบ Let's Get started... Installation เพิ่ม Gem ใน Gemfile จากนั้นรัน `bundle install` # Gemfile group :development do gem "letter_opener" gem "letter_opener_web", "~> 1.0" end กำหนดการส่งอีเมลโดยใช้ letter_opener (กรณี Production จะใช้เป็น :smtp) # config/environments/development.rb config.action_mailer.delivery_method
03 May, 2026

by

การเปลี่ยนทิศทางผลิตภัณฑ์หรือแผนธุรกิจ Startup หรือ Pivot or Preserve
การเปลี่ยนทิศทางผลิตภัณฑ์หรือแผนธุรกิจ Startup หรือ Pivot or Preserve
อีกหนึ่งบททดสอบสำหรับการทำ Lean Startup ก็คือ Pivot หรือ Preserve ซึ่งหมายถึง การออกแบบหรือทดสอบสมมติฐานของผลิตภัณฑ์หรือแผนธุรกิจใหม่หลังจากที่แผนเดิมไม่ได้ผลลัพธ์อย่างที่คาดคิด จึงต้องเปลี่ยนทิศทางเพื่อให้ตอบโจทย์ความต้องการของผู้ใช้ให้มากที่สุด ตัวอย่างการทำ Pivot ตอนแรก Groupon เป็น Online Activism Platform คือแพลตฟอร์มที่มีไว้เพื่อสร้างแคมเปญรณรงค์หรือการเปลี่ยนแปลงบางอย่างในสังคม ซึ่งตอนแรกแทบจะไม่มีคนเข้ามาใช้งานเลย และแล้วผู้ก่อตั้ง Groupon ก็ได้เกิดไอเดียทำบล็อกขึ้นในเว็บไซต์โดยลองโพสต์คูปองโปรโมชั่นพิซซ่า หลังจากนั้น ก็มีคนสนใจมากขึ้นเรื่อยๆ ทำให้เขาคิดใหม่และเปลี่ยนทิศทางหรือ Pivot จากกลุ่มลูกค้าเดิมเป็นกลุ่มลูกค้าจริง Pivot ถูกแบ่งออกเป็น 8 ประเภท Customer Need
03 May, 2026

by

Contact Senna Labs at :

hello@sennalabs.com999 Gaysorn Centre, Unit 5B-1, 5th Floor, เพลินจิต แขวงลุมพินี เขตปทุมวัน กรุงเทพฯ 10330+66 62 389 4599
© 2022 Senna Labs Co., Ltd.All rights reserved. | Privacy policy