-->
This guide will show you how to use your Noipfraud tokens like [[platform]]
or [[country]]
to create dynamic landing pages for your primary page.
I recommend you just follow this exact example to learn and then amend to your specific requirements.
Im this example we want to setup the campaign to show different Primary pages to Android users and iOS users. So we use the platform
token & rules.
๐ก There is no way to do an โelseโ type page - so you need to make sure you block any values for which you have not setup a page. If you need a more powerful way of running dynamic pages, check out our other tool https://n2.app
Create a new campaign to test this method. Once you understand it - you can apply it to your own campaigns.
In this case as we want a different page for each platform, add a platform
rule to your campaign and select the platforms you are targeting.
When you create the rule it will show like this (note in the table the Platform rule type shows as os
)
Use the allowed values from step 1 to create your pages. In our example we need 2 which we saved in a folder called pages
- of course you can name this anything really. The important thing is that the name of the file or folder to a value that exactly matches the token values.
android
โ filename: android.html
ios
โ filename: ios.html
Like this:
Now reopen your example campaign for editing.
In the primary page field use the file picker - to select one of the landing page files so you can get the correct path.
Now just replace android
with [[platform]]
Like this:
So in summary our campaign has these settings:
under review
/home/runner/NoipClient/pages/[[platform]].html
platform
rule (shows as os
rule in the table): allow only android
, ios
country
rule: US
๐ก Double check your primary page uses the
[[
and]]
chars around the token - it lets Noip know you want to substitute it for theplatform
value.
Now save your campaign again.
For this example we will use the simple link deploy method. For any live campaigns I suggest you use the more secure methods: php path or php embed.
https://example.com
as your campaign is set to under reviewTo test your Primary page you need to do a couple of things:
Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/117.0.0.0 Mobile Safari/537.3
Mozilla/5.0 (iPhone; CPU iPhone OS 16_6_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.6 Mobile/15E148 Safari/604.
Below are instructions for changing the user agent in the five most common desktop browsers.
Google Chrome
Cmd + Option + I
on macOS or Ctrl + Shift + I
on Windows).More tools
> Network conditions
.User agent
, uncheck Select automatically
.Mozilla Firefox
about:config
in the address bar and press Enter.general.useragent.override
.New
> String
, and name it general.useragent.override
. Then, enter your desired user agent as the value.Apple Safari
Preferences
> Advanced
.Show Develop menu in menu bar
.Develop
> User Agent
and select an option, or enter a custom one.Microsoft Edge