# \[Troubleshooting] QA a campaign with a geolocation targeting

Geolocation is one of the multiple criteria available on the platform to target a campaign. This service is made available through an external provider. If you need documentation on how to set this up, please refer to user[Broken mention](broken://spaces/6Yw9IRJ6KbbucQPwZUCZ/pages/3Mwyj0PkzRX8x0C8aiDb).

## How does Geolocation work? <a href="#h_01hzrxdhx4b6w64f30x6qej0pj" id="h_01hzrxdhx4b6w64f30x6qej0pj"></a>

To determine the Country/State/City of the visitor, we use their IP address. This IP address is stored in the visitor’s Session Storage, in a variable called ABTastyGeoloc. This variable is only visible if a campaign, currently live, uses one of the following targeting:

* Geolocation
* IP
* Weather

**Good to Know 💡**\
AB Tasty does not collect the IP address of the visitor.

## How to QA a campaign using a targeting by Geolocation? <a href="#h_01hzrxdhx4fyjgk8mkhq8dn3pa" id="h_01hzrxdhx4fyjgk8mkhq8dn3pa"></a>

If you are using a VPN, turn it ON and select the targeted country or city. Don’t forget to edit your IP Address in the QA Mode, it’s possible that your VPN IP Address is different!

To edit your geolocation manually, you must edit the ABTastyGeoloc variable in your SessionStorage:

<figure><img src="/files/v197zozDlK6Jqb6wGXBY" alt=""><figcaption></figcaption></figure>

To retrieve the targeted values (‘code\_country’, ‘code\_least\_specific\_subdivision’...) and add them to ABTastyGeoloc, you can consult ABTasty.results and unfold the available variables until you find the information that interests you. To find out more about how ABTasty.results works, see this [article](https://support.abtasty.com/hc/en-us/articles/6397600980508--Troubleshooting-Checking-if-a-page-is-assigned-to-a-campaign#h_01GGVWSAKTTV2SEKCT05CD89X8).

<figure><img src="/files/l1WAzMDHcQZh1DAwDCFc" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.abtasty.com/help-center/troubleshooting/troubleshooting-qa-a-campaign-with-a-geolocation-targeting.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
