Activity (Target Test) URL determines the page that will qualify and renders the experience for your Target Activity to the users. When prompted during activity creation, typing the complete URL always will not necessarily assure that the content will be delivered on that site page. In this post/blog, we will look at some options while setting up the activity with URL having query string.
We generally see the option to configure our activity URLs by clicking on ‘Configure’ icon, then select Page Delivery and then specify the URL. What if URL has query string? Will it work and show the personalized content?
In this scenario irrespective of your Targeted audience, one must have the template rule in addition to the base URL which will define your query parameters. There could be number of options to do that. Few of which have been explained below.
Option 1: Replicating the URL and keep it in the template rule with ‘contains’ option. This will reassure you that in any case, this URL will qualify for the test. But there are corner cases attached to it that can influence your reports data with the additional records to all those URLs which contains the base URL.
![khushbook25_0-1590502315392.png khushbook25_0-1590502315392.png](https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/24226i5153E9605FCDCA7B/image-size/medium/is-moderation-mode/true?v=v2&px=400)
Option 2: Restrict the URL contains condition with only query string. The corner case discussed in point number one will be applied in this option as well but here the conditional setup is limited to only query string.
![khushbook25_1-1590502315401.png khushbook25_1-1590502315401.png](https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/24225i6C17B6C22582FA9F/image-size/medium/is-moderation-mode/true?v=v2&px=400)
Option 3: This third option is something that Target tool provides w.r.t query parameters. Instead of targeting the complete URL, you can leverage the specific part of URL. Using the template rule with Query option eases your way to achieve the objective.
![khushbook25_2-1590502315412.png khushbook25_2-1590502315412.png](https://experienceleaguecommunities.adobe.com/t5/image/serverpage/image-id/24227i56185D355D76746A/image-size/medium/is-moderation-mode/true?v=v2&px=400)
Note: In all the above options, the base URL remains same including the query string. Let’s say you want to personalize your content through VEC so it is very important to keep an eye on the base URL since this is the one URL which will be loaded in VEC for you.
Thanks!