> For the complete documentation index, see [llms.txt](https://docs.abtasty.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.abtasty.com/help-center/troubleshooting/troubleshooting-qa-a-campaign-with-a-geolocation-targeting.md).

# \[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="https://1594035872-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhZIDRsh66I8ikipjy42H%2Fuploads%2Fwlt3Eeqn5NAJAgZYF7Aj%2FScreenshot%202025-06-19%20at%2009.38.49.png?alt=media&amp;token=938f9421-f3b9-43a9-922b-71e65fb8637d" 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="https://1594035872-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FhZIDRsh66I8ikipjy42H%2Fuploads%2FvlMnMfin3UCDBDCnRuIU%2FScreenshot%202025-06-19%20at%2009.39.28.png?alt=media&amp;token=2f8cb289-b242-46b7-ae73-4f6c4576070b" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

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

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

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

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
