Message Boards

LF 7 Audience Targeting

Bartosz Stanczyk, modified 7 Years ago.

LF 7 Audience Targeting

New Member Posts: 16 Join Date: 3/21/14 Recent Posts
Lately I 've explored Audience Targeting tool for liferay dxp. I have found very useful features, but I can't find any information how to use Location segmentation rule. There are two selects - one with the country and second with region but both are empty. It would be great if anyone could describe how to full fill those selects and how it works under the hood. Maybe point out differences between this rule and IP rage rule.

Thank You in advance.
thumbnail
Eduardo P. García, modified 3 Years ago.

RE: LF 7 Audience Targeting

Regular Member Posts: 157 Join Date: 3/16/12 Recent Posts
Hi Bartosz,

The selectors in the Location rule should display a list of countries and regions. What you observe could be an issue. Could you please indicate which versions of DXP and Audience Targeting you are using?

Thank you very much
Bartosz Stanczyk, modified 7 Years ago.

RE: LF 7 Audience Targeting

New Member Posts: 16 Join Date: 3/21/14 Recent Posts
Hi Eduardo,

Answering Your questions :

  • Liferay Audience Targeting Version: 2.1.0
  • Liferay DXP Digital Enterprise 7.0.10 GA1 (Wilberforce / Build 7010 / June 15, 2016)


Can You please describe how it works under the hood - how is it determine if user is located in particular location?
thumbnail
Eduardo P. García, modified 3 Years ago.

RE: LF 7 Audience Targeting

Regular Member Posts: 157 Join Date: 3/16/12 Recent Posts
Hi Bartosz,

Thanks for the info. You have to install Fix Pack 8 or higher to use Audience Targeting 2.1.0. Please take a look to this thread for further details. You can also install Liferay DXP SP2, recently available in our Customer Portal.

Regards
Bartosz Stanczyk, modified 7 Years ago.

RE: LF 7 Audience Targeting

New Member Posts: 16 Join Date: 3/21/14 Recent Posts
Eduardo,

I did install Liferay DXP SP2 but the Location rule despair from available rules. Is it intentional effect?
thumbnail
Eduardo P. García, modified 3 Years ago.

RE: LF 7 Audience Targeting

Regular Member Posts: 157 Join Date: 3/16/12 Recent Posts
Hi Bartosz,

No, it's not intended. It might be an issue with the IP Geolocation module, which is a dependency of this rule. Please, let me try to reproduce it and I'll get back to you on this ASAP. Sorry for the inconvenience.

Regards
thumbnail
Eduardo P. García, modified 3 Years ago.

RE: LF 7 Audience Targeting

Regular Member Posts: 157 Join Date: 3/16/12 Recent Posts
Hi Bartosz,

I wasn't able to reproduce it with these steps:

1. Install Liferay DXP SP2
2. Install Audience Targeting 2.1.0 from Marketplace
3. Restart
4. Go to Site > Configuration > Audience Targeting
5. Create a new User Segment

The Location Rule is displayed in the rule's palette under the Session Attribute section (see attached screenshot).

Could you please confirm if the Liferay IP Geocoder app is installed? You can verify it through Control Panel > Apps > App Manager > Search by "Geocoder" or using the GoGo shell:


>telnet localhost 11311
>lb Geocoder


If it weren't installed, that'd explain why the rule is not displayed. Then you can install the IP Geocoder app from Marketplace and check if the Location rule is now available.

If the IP geocoder is installed, please run this in the GoGo shell:


>lb "Geocode Rule"


If the status is not Active, please write down its module ID and run:


&gt;diag <module id>
</module>


Please let me know about the results of these actions.

Thanks
Bartosz Stanczyk, modified 7 Years ago.

RE: LF 7 Audience Targeting

New Member Posts: 16 Join Date: 3/21/14 Recent Posts
Eduardo,

As You can see below rule is active.

Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
____________________________
Welcome to Apache Felix Gogo

g! lb "Geocode Rule"
START LEVEL 20
   ID|State      |Level|Name
  552|Active     |   10|Liferay Content Targeting Ip Geocode Rule (1.0.0)
g! diag 552
com.liferay.content.targeting.rule.ip.geocode [552]
  No resolution report for the bundle.
g! lb Geocoder
START LEVEL 20
   ID|State      |Level|Name
  507|Active     |   10|Liferay IP Geocoder (3.0.0)
  508|Active     |   10|Liferay IP Geocoder Sample Web (2.0.2)
  509|Active     |   10|Liferay IP Geocoder (2.0.5)
thumbnail
Eduardo P. García, modified 3 Years ago.

RE: LF 7 Audience Targeting

Regular Member Posts: 157 Join Date: 3/16/12 Recent Posts
Hi Bartosz,

Thanks for the info. If the rule bundle is active, it should be displayed in the rule palette of the User Segment editor in the Session Attribute section. Is it still not displaying? If so, could you please check if the browser is throwing any console error? Also, which rules are displayed in the Session Attribute section?

Thanks
karthik reddy, modified 6 Years ago.

RE: LF 7 Audience Targeting

Junior Member Posts: 60 Join Date: 4/8/13 Recent Posts
Hi Eduardo,

Thanks for the information and please let me know as will it be available along with Liferay 7 CE or we need to download from market place plugin. If I start work with DXP will it be available or again we need to download from market place. I just deployed lpkg file in Liferay 7 CE but i am getting many errors like com.liferay.portal.lpkg.deployer.LPKGVerifyException: LPKG validation failed with {[missing requirement com.liferay.content.targeting.analytics.api; version=1.1.0; type=osgi.bundle [caused by: Unable to resolve com.liferay.content.targeting.analytics.api version=1.1.0: missing requirement com.liferay.portal.kernel.lar]]

Please find the attached document for the same and please provide the solution ASAP.

Thanks & Regards
M.Karthik Reddy


Eduardo P. Garcia:
Hi Bartosz,

Thanks for the info. If the rule bundle is active, it should be displayed in the rule palette of the User Segment editor in the Session Attribute section. Is it still not displaying? If so, could you please check if the browser is throwing any console error? Also, which rules are displayed in the Session Attribute section?

Thanks
thumbnail
Eduardo P. García, modified 3 Years ago.

RE: LF 7 Audience Targeting

Regular Member Posts: 157 Join Date: 3/16/12 Recent Posts
Hi Karthik,

Audience Targeting 2.0 is currently only available for Liferay DXP.

Regards