Maulik Vora
Maulik Vora

Reputation: 2584

Is Automation possible Using PHP/Curl?

I have a requirement like below.

  1. If I visit a website through Curl,
  2. and after 30 seconds, I click on any link of that website, will it be considered as a single visit?

I want to get it considered as a single visit. so it can be tracked in analytics or wordpress-jetpack-stats as a single visit.

If this is not possible, Please give me possible solution to do this through PHP.

Upvotes: 0

Views: 299

Answers (1)

chops
chops

Reputation: 2612

It will depend on how the target server considers "visits". If it's by IP, then there's nothing special you need to do. If it's by cookie, then you want to make sure you extract the cookie info from the initial request, then send those cookies back with the followup request.

Check out the cookie options in curl_setopt.

Upvotes: 1

Related Questions