Tạm thời trong tổng thể cài đặt Google Dynamic sẽ có 4 bước chính
Bước 1: Lấy code Pixel
* Lấy code Pixel để làm gì, để lấy mã định danh sản phẩm sao cho khớp với mã code trên Website
* Chọn Thiết lập, Chọn loại hình Doanh nghiệp

* Sau đó view code Remar ở bên dưới, ta thấy 1 đoạn mã như thế này
<!-- Google Code for Remarketing Tag -->
<!--------------------------------------------------
Remarketing tags may not be associated with personally identifiable information or placed on pages related to sensitive categories. See more information and instructions on how to setup the tag on: http://google.com/ads/remarketingsetup
--------------------------------------------------->
//custom code js get data
<script type="text/javascript">
var google_tag_params = {
flight_originid: 'REPLACE_WITH_VALUE',
flight_destid: 'REPLACE_WITH_VALUE',
flight_startdate: 'REPLACE_WITH_VALUE',
flight_enddate: 'REPLACE_WITH_VALUE',
flight_pagetype: 'REPLACE_WITH_VALUE',
flight_totalvalue: 'REPLACE_WITH_VALUE',
};
</script>
//#end code
//Demo code ex phần trên
<script type="text/javascript">
var google_tag_params = {
flight_originid: '@System.Text.RegularExpressions.Regex.Match(Model.DepartureCode, @"\(\w+\)").Value.TrimEnd(')').TrimStart('(')',
flight_destid: '@System.Text.RegularExpressions.Regex.Match(Model.ArrivalCode, @"\(\w+\)").Value.TrimEnd(')').TrimStart('(')',
flight_startdate: '@Model.DepartTime.ToString("yyyy-MM-dd")',
flight_enddate: '@Model.ReturnTime.ToString("yyyy-MM-dd")',
flight_pagetype: 'searchresults',
};
</script>
//#end demo code
<script type="text/javascript">
/* <![CDATA[ */
var google_conversion_id = 970659980;
var google_custom_params = window.google_tag_params;
var google_remarketing_only = true;
/* ]]> */
</script>
<script type="text/javascript" src="//www.googleadservices.com/pagead/conversion.js">
</script>
<noscript>
<div style="display:inline;">
<img height="1" width="1" style="border-style:none;" alt="" src="//googleads.g.doubleclick.net/pagead/viewthroughconversion/970659980/?value=0&guid=ON&script=0"/>
</div>
</noscript>
* Sau khi có pixel này copy vô phần thẻ </body>
Lưu ý
- ID so khớp dữ liệu với feed data phải là duy nhất ( required )
- Với site TMĐT sẽ là id product
- Trường hợp của mình : mình chỉ muốn get data của user đã từng search chặng
- Phần custom code cần bên kỹ thuật support chút xíu ( nếu bạn ko biết code )
* Sau đó lên Website, dùng Google Tag Assistant xem Code đã ăn chưa. Lưu ý hãy check ở trang bạn muốn lấy cụ thể ID sản phẩm để chạy Dynamic
Dữ liệu nhả về sau khi Setup Pixel là Ok
Bước 2: Tạo file Feed Data Product:
Tham khảo cách làm và quản lý Data trên Sheet, và đẩy hết Feed Data này lên
* Thư viện đã chia sẻ > Dữ liệu doanh nghiệp > + Dữ liệu > Nguồn cấp dữ liệu quảng cáo hiển thị hình ảnh động > Chuyến bay
* Trường hợp 1: Upload file theo Rule
0 nhận xét:
Đăng nhận xét