1

I am trying to use Salesforce predictive web to display page recommendations for specific users. I am reporting the user data as such:

<script src="https://{}.collect.igodigital.com/collect.js"></script>
<script>
    _etmc.push(["setOrgId", {}]);
    _etmc.push(["setUserInfo", {
        "id": "{}",
        "email": "{}"
    }]);
</script>

I am using {} as a placeholder here for specific info. This appears to be working, because I can view my profile and pages that I have viewed in Salesforce by looking up my own email address, so I don't think that is the issue. I am grabbing the data from salesforce using this url:

https://{}.recs.igodigital.com/a/v2/{}/home/recommend.json

When I do this, I can get data for "Content Top Views" scenarios, but nothing else, no other scenarios. This makes sense, because I am not reporting my email address to Salesforce when making this request, so it would have no way of knowing which profile to pull up when it is grabbing the json data. I have tried

https://{}.recs.igodigital.com/a/v2/{}/home/recommend.json?email={}

but it does not work either. Does anyone know how to format this request so that salesforce returns user-specific recommendations that can be used for other scenario types? Where is the documentation on this?

Clarifications

  • I am trying to do this using Salesforce Predictive Web, located on this page: https://mc.s7.exacttarget.com/cloud/#app/Predictive Web/web_rec_tools. If you go to https://mc.s7.exacttarget.com/cloud/ then go to Personalization Builder -> Predictive Web, that is where I am at.
  • In answer to the comment about whether or not am doing this in a Visual Force page, no, I am not. This site is created using Django and is hosted on my own server.
  • I have not found anything in help.salesforce.com yet, but I did find a bit of documentation here, help.marketingcloud.com/en/documentation/personalization_builder/predictive_web/, but it does not answer the question unfortunately.
  • I am assuming you are trying to do this in a visual force page (because of the script tags), but could you please specify? additionally, have you looked for information in the H&T portal? help.salesforce.com – glls May 5 '17 at 14:03
0

Trying to acheive the same thing and tried with

https://{MID}.recs.igodigital.com/a/v2/{MID}/home/recommend.json?email={EMAILOFUSER}

and it seems to be working and returning predictions as per the reporting tab.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.