Website API

The Website endpoint let’s you retrieve all your websites.

GET: https://api.wecantrack.com/api/v1/websites
Request
Header
Content-Type: application/json
Parameters
Parameter
Data Type
Required
Description
id

Integer

Optional

Website ID

url

String

Optional

Website URL

Response
Header
Content-Type: application/json
200 Body - OK

Response Example

				
					[
  {
    "id": 2332,
    "url": "https://www.website1.com",
    "active": 1
  },
  {
    "id": 5213,
    "url": "https://www.website2.com",
    "active": 1
  },
  {
    "id": 6248,
    "url": "https://www.website3.com",
    "active": 0
  },
  ...
]
				
			
Create Website

POST: https://api.wecantrack.com/api/v1/websites

Request
Header
Content-Type: application/json
Payload
Field
Data Type
Required
Description
url

String

Yes

A valid URL

active

boolean

no

A boolean value indicating whether the field is active or not

ga_tracking_id

string

no

A string following the format “UA-XXXX-Y” where X is a number between 4 and 10 and Y is a number between 1 and 4

fb_pixel_id

integer

no

A numeric value with a minimum of 10 and maximum of 17 digits

fb_access_token

string

no

A alphanumeric string with a maximum length of 255 characters

microsoft_ads_tag_id

integer

no

A numeric value

pop_ads_aid

string

no

tiktok_access_token

string

no

tiktok_pixel_code

string

no

revcontent_key

string

no

propellerads_tid

string

no

propellerads_aid

string

no

snapchat_pixel_id

string

no

zeropark_account_id

string

no

adsterra_username

string

no

ga_api_secret

string

no

ga_measurement_id

string

no

mgid_currency_id

string

no

A string value that must be one of: USD, EUR, CAD, AUD, INR, GBP, ZAR

google_ads_tag_id

string

no

A string value that must be one of: USD, EUR, CAD, AUD, INR, GBP, ZAR

dynamic_content

boolean

no

A boolean value

wordpress

boolean

no

A boolean value

redirect_through

string

no

A string that must be one of: default, https://wct-2.com, https://wct-1.com, https://offer-go.com/r, custom

proxy

string

no

A valid URL

do_not_modify_links

boolean

no

A boolean value indicating whether the links should be modified or not

ip_anonymization

integer

no

An integer value that must be one of: 0, 1, 2

auto_tagging

boolean

no

A boolean value indicating whether auto tagging is enabled or not

Request Example

				
					{
    "url" : "https://example.com",
    "active" : true,
    "wordpress" : true,
    "ga_tracking_id" : "UA-1234-Y"
}
				
			

Response

200 Body - OK

Response Example

				
					[
  {
    "id": 2332,
    "url": "https://www.website1.com",
    "active": 1
  },
  {
    "id": 5213,
    "url": "https://www.website2.com",
    "active": 1
  },
  {
    "id": 6248,
    "url": "https://www.website3.com",
    "active": 0
  },
  ...
]
				
			
Update Website

PATCH: https://api.wecantrack.com/api/v1/websites

Request
Header
Content-Type: application/json
Parameters
Parameter
Data Type
Required
Description
url

string

yes

Website URL

Payload
Field
Data Type
Required
Description
active

boolean

no

A boolean value indicating whether the field is active or not

ga_tracking_id

string

no

A string following the format “UA-XXXX-Y” where X is a number between 4 and 10 and Y is a number between 1 and 4

fb_pixel_id

integer

no

A numeric value with a minimum of 10 and maximum of 17 digits

fb_access_token

string

no

A alphanumeric string with a maximum length of 255 characters

microsoft_ads_tag_id

integer

no

A numeric value

pop_ads_aid

string

no

tiktok_access_token

string

no

tiktok_pixel_code

string

no

revcontent_key

string

no

propellerads_tid

string

no

propellerads_aid

string

no

snapchat_pixel_id

string

no

zeropark_account_id

string

no

adsterra_username

string

no

ga_api_secret

string

no

ga_measurement_id

string

no

mgid_currency_id

string

no

A string value that must be one of: USD, EUR, CAD, AUD, INR, GBP, ZAR

google_ads_tag_id

string

no

A string value that must be one of: USD, EUR, CAD, AUD, INR, GBP, ZAR

dynamic_content

boolean

no

A boolean value

wordpress

boolean

no

A boolean value

redirect_through

string

no

A string that must be one of: default, https://wct-2.com, https://wct-1.com, https://offer-go.com/r, custom

proxy

string

no

A valid URL

do_not_modify_links

boolean

no

A boolean value indicating whether the links should be modified or not

ip_anonymization

integer

no

An integer value that must be one of: 0, 1, 2

auto_tagging

boolean

no

A boolean value indicating whether auto tagging is enabled or not

Response

Header

Content-Type: application/json
200 Body - OK

Response Example

				
					[
  {
    "id": 2332,
    "url": "https://www.website1.com",
    "active": 1
  },
  {
    "id": 5213,
    "url": "https://www.website2.com",
    "active": 1
  },
  {
    "id": 6248,
    "url": "https://www.website3.com",
    "active": 0
  },
  ...
]
				
			
Delete Website

DELETE: https://api.wecantrack.com/api/v1/websites

Request
Header
Content-Type: application/json
Parameters
Parameter
Data Type
Required
Description
url

string

yes

Website URL

Get script

GET: https://api.wecantrack.com/api/v1/websites/script

Request
Header
Content-Type: application/json
Parameters
Parameter
Data Type
Required
Description
url

string

yes

Website URL

Response
Header
Content-Type: text/javascript
Response
				
					(function(w, c, t, u) {
    w._wct = w._wct || {}; w._wct = u;
    var s = c.createElement(t);
    s.type = 'text/javascript'; s.async = true; s.src = 'https://wct-2.com/wct.js';
    var r = c.getElementsByTagName(t)[0];
    r.parentNode.insertBefore(s, r);
}(window, document, 'script', {
    'uid' : 'xxxx',
    'proxy' : 'https://wct-2.com'
}));