How to create a new "Display Zone"
Last updated
Last updated
Field | Description |
---|---|
Display Zone name | Input the name that you want |
Domain | Input your website domain |
Zone Code | Code of new Zone is automatically added by the system but you can edit it |
Zone type | Get Zone script: After creating Zone successfully, the system will generate Zone script. Put this Zone script in the position where you want to display the ad on the website. You can see how to get the Zone script here. Use CSS Selector: Input Class or ID of the div tag where you want to show the Ad. You can see how to get the class or id here |
Hover your mouse over Settings -> Choose Web Personalize
3. Click Copy to clipboard to copy your Zone Script
Go to your website
Press F12 (or Fn + F12) to open Developer Tools
4. Find the location where you want to display the Ad, then click on that location to display id or class
For example:
5. Copy the id or class into the Create Display Zone interface.
NOTE:
+ Add "#" in front of the id (Example: #maincontent)
+ Add "." in front of the class (Example: .page-main)
For example:
Note: If there are many classes in a div tag, you must replace the space with a "."
Get the "CSS selector" - this way is used when the class names are duplicated in many places on this page
- Right click on the div tag -> Copy -> Copy selector
Paste the content you just copied into the CSS Selector field in the Create Display zone interface
In case the level of div is not determined, you can use the following way:
Code example:
Like the above example, there are ways to get the "class-chau" div
.class-cha.class-cha-02 > .class-con > .class-chau
.class-cha.class-cha-02 .class-chau
Go to your website
Press F12 (or Fn + F12) to open Developer Tools
Press Ctrl + F to open search box at Elements tab
4. Input id or class that you want
5. Search results will be highlighted, hover over the search results to see the location on the website
At the Display Zone listing, hover your mouse over the zone you want to get the script -> Click icon
Click icon