{"id":473,"date":"2019-08-10T06:51:38","date_gmt":"2019-08-10T06:51:38","guid":{"rendered":"http:\/\/adsforwp.com\/docs\/?post_type=ht_kb&#038;p=473"},"modified":"2019-08-10T07:10:54","modified_gmt":"2019-08-10T07:10:54","slug":"my-user-targetting-is-not-working-when-targetting-the-ad-on-the-mobile-and-desktop-how-do-i-fix-this","status":"publish","type":"ht_kb","link":"https:\/\/adsforwp.com\/docs\/article\/my-user-targetting-is-not-working-when-targetting-the-ad-on-the-mobile-and-desktop-how-do-i-fix-this\/","title":{"rendered":"My User Targetting is not working when targetting the ad on the mobile and desktop, How do I fix this?"},"content":{"rendered":"\n<p>If you are using any cache plugin and it is not storing separate cache for mobile and desktop and it is taking as previous cache because you have not selected &#8216;separate cache for mobile devices&#8217;. for this follow the below instruction.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"mobile-redirection-and-cache-plugin\"><strong>Mobile Redirection and Cache plugin<\/strong><\/h3>\n\n\n\n<p>First of all, you need to separate cache file for the Mobile device and Desktop device.<\/p>\n\n\n\n<p>Separate cache files for mobile devices and desktop in case you use one of the plugins mentioned below.<\/p>\n\n\n\n<p>Once your site is loads mobile device or Desktop device it will serve a separate cache file for the different device.<\/p>\n\n\n\n<h5 class=\"wp-block-heading\" id=\"here-is-the-list-of-cache-plugin-which-supports-the-mobile-redirection\">Here is the list of cache plugin which supports the Mobile redirection.<\/h5>\n\n\n\n<ol class=\"wp-block-list\"><li><a href=\"https:\/\/adsforwp.com\/docs\/article\/my-user-targetting-is-not-working-when-targetting-the-ad-on-the-mobile-and-desktop-how-do-i-fix-this\/#how-to-enable-mobile-device-caching-in-wp-rocket\">WP Rocket<\/a><\/li><li><a href=\"https:\/\/adsforwp.com\/docs\/article\/my-user-targetting-is-not-working-when-targetting-the-ad-on-the-mobile-and-desktop-how-do-i-fix-this\/#how-to-enable-mobile-device-caching-in-wp-super-cache\">WP Super Cache<\/a><\/li><li><a href=\"https:\/\/adsforwp.com\/docs\/article\/my-user-targetting-is-not-working-when-targetting-the-ad-on-the-mobile-and-desktop-how-do-i-fix-this\/#how-to-enable-mobile-device-caching-in-w3-total-cache\">W3 Total Cache<\/a><\/li><li><a href=\"https:\/\/adsforwp.com\/docs\/article\/my-user-targetting-is-not-working-when-targetting-the-ad-on-the-mobile-and-desktop-how-do-i-fix-this\/#how-to-enable-mobile-device-caching-in-litespeed-cache\">Litespeed cache<\/a><\/li><li><a href=\"https:\/\/adsforwp.com\/docs\/article\/my-user-targetting-is-not-working-when-targetting-the-ad-on-the-mobile-and-desktop-how-do-i-fix-this\/#how-to-enable-mobile-device-caching-in-wp-fastest-cache\">WP Fastest Cache<\/a><\/li><\/ol>\n\n\n\n<p><strong>Does Not Support the Mobile redirection.<\/strong><\/p>\n\n\n\n<ol class=\"wp-block-list\"><li>SG optimizer<\/li><li>Breeze cache plugin<\/li><\/ol>\n\n\n\n<p style=\"background-color: #ffdddd; border-left: 2px solid #f44336; padding:10px;\"><strong>Note:<\/strong>Above those two plugins does not support mobile cache.<\/p>\n\n\n\n<p>If you have an issue regarding with the above plugin for Mobile redirection then&nbsp;Please leave your comments below.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"how-to-enable-mobile-device-caching-in-wp-rocket\"><strong>How to enable mobile device&nbsp;<\/strong>caching&nbsp;<strong>in&nbsp;<\/strong>WP Rocket<\/h3>\n\n\n\n<p>Once you install&nbsp;<a href=\"https:\/\/wp-rocket.me\/\">WP Rocket<\/a>&nbsp;plugin and activated then follow these steps:<\/p>\n\n\n\n<p><strong>1.<\/strong>&nbsp;Go to&nbsp;<strong>WordPress Admin Area<\/strong>&nbsp;-&gt;<strong>&nbsp;Settings<\/strong>&nbsp;-&gt;&nbsp;<strong>WP Rocket<\/strong>&nbsp;-&gt;&nbsp;<strong>Cache<\/strong>&nbsp;-&gt;&nbsp;<strong>Mobile Cache<\/strong>.<\/p>\n\n\n\n<p><strong>2. Enable caching for mobile devices:<\/strong>&nbsp;First, you have to select this option then it will show&nbsp;<strong>Separate cache files for mobile devices<\/strong>&nbsp;option.<\/p>\n\n\n\n<p><strong>3.&nbsp;Separate cache files for mobile devices:&nbsp;<\/strong>Once you select this option WP Rocket will create separate cache file for mobile devices.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/WP-Rocket.png\"><img decoding=\"async\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/WP-Rocket.png\" alt=\"\" class=\"wp-image-8115\"\/><\/a><\/figure>\n\n\n\n<p><strong>4.&nbsp;<\/strong>Click on the save change button.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"how-to-enable-mobile-device-caching-in-wp-super-cache\">How to enable mobile device caching in WP Super Cache<\/h3>\n\n\n\n<p>Once you install&nbsp;<a href=\"https:\/\/wordpress.org\/plugins\/wp-super-cache\/\">WP Super Cache<\/a>&nbsp;plugin and activated then follow these steps:<\/p>\n\n\n\n<p><strong>1.<\/strong>&nbsp;Go to&nbsp;<strong>WordPress Admin Area<\/strong>&nbsp;-&gt;<strong>&nbsp;Settings<\/strong>&nbsp;-&gt;<strong>WP Super Cache<\/strong>&nbsp;&nbsp;-&gt;Click the&nbsp;<strong>Advanced<\/strong>&nbsp;tab.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-2.png\"><img decoding=\"async\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-2.png\" alt=\"\" class=\"wp-image-8910\"\/><\/a><\/figure>\n\n\n\n<p><strong>4.<\/strong>&nbsp;By default, you should see the Mobile Device Support checkbox checked. If not, check the&nbsp;<strong>checkbox<\/strong>&nbsp;and&nbsp;<strong>Save<\/strong>&nbsp;the changes.<\/p>\n\n\n\n<p><strong>5.<\/strong>&nbsp;Purge WP Super Cache\u2019s cache<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"how-to-enable-mobile-device-caching-in-w3-total-cache\">How to enable mobile device caching in W3 Total Cache<\/h3>\n\n\n\n<p>Once you install&nbsp;<a href=\"https:\/\/wordpress.org\/plugins\/w3-total-cache\/\">W3 Total Cache<\/a>&nbsp;plugin and activated then follow these steps:<\/p>\n\n\n\n<p><strong>1.<\/strong>&nbsp;Once installing W3 Total Cache plugin you will see the Performance option in WordPress dashboard.<\/p>\n\n\n\n<p><strong>2.<\/strong>&nbsp;Go to&nbsp;<strong>WordPress dashboard<\/strong>&nbsp;-&gt;<strong>&nbsp;Performance&nbsp;<\/strong>&nbsp;-&gt;<strong>User Agent Groups<\/strong>&nbsp;&nbsp;-&gt;Enable this option in the phone and click on the save button.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-1.png\"><img decoding=\"async\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/4-1.png\" alt=\"\" class=\"wp-image-8940\"\/><\/a><\/figure>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"how-to-enable-mobile-device-caching-in-litespeed-cache\"><strong>How to enable mobile device&nbsp;<\/strong>caching&nbsp;<strong>in&nbsp;<\/strong>Litespeed cache<\/h3>\n\n\n\n<p>Once you install&nbsp;<a href=\"https:\/\/wordpress.org\/plugins\/litespeed-cache\/\">Litespeed cache<\/a>&nbsp;plugin and activated then follow these steps:<\/p>\n\n\n\n<p><strong>1.&nbsp;<\/strong>Once installing Litespeed cache plugin you will see the Litespeed cache option in WordPress dashboard.<\/p>\n\n\n\n<p><strong>2.<\/strong>&nbsp;Go to the&nbsp;<strong>LiteSpeed Cache plugin\u2019s<\/strong>&nbsp;-&gt;<strong>&nbsp;Settings&nbsp;<\/strong>-&gt;&nbsp;Click on the \u201cCache\u201d tab<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-3.png\"><img decoding=\"async\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/2-3.png\" alt=\"\" class=\"wp-image-10165\"\/><\/a><\/figure>\n\n\n\n<p>Scroll down a little to see this option<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/3-3.png\"><img decoding=\"async\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/3-3.png\" alt=\"\" class=\"wp-image-10167\"\/><\/a><\/figure>\n\n\n\n<p><strong>3.<\/strong>&nbsp;Enable the \u201cCache Mobile\u201d settings click on the \u201csave changes\u201d button.<\/p>\n\n\n\n<p><strong>4.<\/strong>&nbsp;Purge LiteSpeed Cache\u2019s cache<\/p>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"how-to-enable-mobile-device-caching-in-wp-fastest-cache\">How to enable mobile device caching in WP Fastest Cache<\/h3>\n\n\n\n<p>&nbsp;Once you install&nbsp;<a href=\"https:\/\/wordpress.org\/plugins\/wp-fastest-cache\/\">WP Fastest Cache<\/a>&nbsp;&nbsp;plugin and activated then follow these steps:<\/p>\n\n\n\n<p><strong>1.<\/strong>&nbsp;Once installing WP Fastest Cache plugin you will see the WP Fastest Cache option in WordPress dashboard.<\/p>\n\n\n\n<p><strong>2.<\/strong>&nbsp;Go to the<strong>&nbsp;Go to WordPress Admin Area -&gt; WP Fastest Cache<\/strong>&nbsp;-&gt;&nbsp;<strong>Settings<\/strong>&nbsp;&gt; Check \u201c<strong>Mobile<\/strong>\u201d Option &gt; after that click on the \u201cSubmit\u201d button.<\/p>\n\n\n\n<figure class=\"wp-block-image\"><a href=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/c-1.png\"><img decoding=\"async\" src=\"https:\/\/ampforwp.com\/tutorials\/wp-content\/uploads\/2017\/03\/c-1.png\" alt=\"\" class=\"wp-image-12335\"\/><\/a><\/figure>\n\n\n\n<p><strong>3.<\/strong>\u00a0Purge WP Fastest Cache\u2019s cache<\/p>\n\n\n\n<p><strong>That\u2019s it for this tutorial!<\/strong><\/p>\n\n\n\n<p>We hope we\u2019ve clear your doubts in case If you have any feedback or questions, then please share them in the comments section below.<\/p>\n\n\n\n<p>Or you Just contact us&nbsp;<a href=\"http:\/\/www.adsforwp.com\/contact\/\"><strong>here<\/strong>&nbsp;<\/a>and we are always available for you.<\/p>\n\n\n\n<p><br><\/p>\n","protected":false},"excerpt":{"rendered":"<p>If you are using any cache plugin and it is not storing separate cache for mobile and desktop and it is taking as previous cache because you have not selected &#8216;separate cache for mobile devices&#8217;. for this follow the below instruction. Mobile Redirection and Cache plugin First of all, you&#8230;<\/p>\n","protected":false},"author":3,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[19],"ht-kb-tag":[],"class_list":["post-473","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-troubleshooting"],"_links":{"self":[{"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/473","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/comments?post=473"}],"version-history":[{"count":7,"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/473\/revisions"}],"predecessor-version":[{"id":480,"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/ht-kb\/473\/revisions\/480"}],"wp:attachment":[{"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/media?parent=473"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/ht-kb-category?post=473"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/adsforwp.com\/docs\/wp-json\/wp\/v2\/ht-kb-tag?post=473"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}