cancel
Showing results for 
Search instead for 
Did you mean: 

SAP: Prefill Contact Data is not appearing on the landing page- SAP Marketing

former_member576423
Participant

Hello Experts,

I am working on SAP Hybris Marketing 1709 ersion. We have a scenario where an email campaign is running and the link of landing page is embed to an email. Once the user clicks on the landing page the email address is not prefilled on the email input field. We have created a landing page with Prefill contact data. The embed url is like below:

https://XXXX.com/marketing/XX/Copy%20of%20Recording/testXX1.html?E-mail=XXXX%40gmail.com&sap-outboun...

With the aove URL the email and SAP Outbound ID is being passed, but the email address field on the landing page is not prefilled with email address. It is blank.

Ideally it should copy the email address from the url itself on the field?

Do the code needs to be written on the script side?

Kindly assist.

Thanks,

Mayank

former_member576423
Participant
0 Kudos

Hello Experts,

Any suggestions on the above?

Thanks,

Mayank

Accepted Solutions (0)

Answers (4)

Answers (4)

vervinckt_joyca
Active Contributor

Hi Mayank,

is E-mail the only field on your landing page, or are there other fields as well? Are those being prefilled?

What happens in the background, as soon as the LP is opened, it makes a call to SAP Marketing to request all the contact data of that sap-outbound-id.

So you need to make sure as well that the User that interfaces your landing page to SAP Marketing, is authorized to make that call. Did you maintain the necessary communication arrangements?

Kr,

Joyca

former_member576423
Participant
0 Kudos

Hi Joyca,

Thanks for your reply.

I have Email address and subscription fields on the landing page. Once i submit the landing page after entering the email address manually, the permissions are recorded correctly in the system.

Can you please let me know how can I check the User for authorisation? i have the proper settings in SM59. Can we debug this issue?

Thanks,

Mayank

vervinckt_joyca
Active Contributor
0 Kudos

Hi Mayank,

Hmm, an onpremise, that's been a while for me...

I remember using F12 in the browser on the landing pages for troubleshooting. I remember something related to the Web Disatpcher and firewall settings that was required for a Landing Page to be able to communicate with SAP Marketing onpremise system. I can't remember the details, the Basics team did that part...

Did you see this blog yet?

https://blogs.sap.com/2017/01/31/implementing-sap-hybris-marketing-landing-pages-using-the-sap-web-d...

Especially the part on "Cross-Origin-Resource-Sharing", I remember seeing that error in F12 on my landing page before.

Hope some of this info can help you,

Kr,

Joyca Vervinckt

0 Kudos

Hi Mayank,

to be precise, let us first destinguish between Landing Pages and Forms.

To deploy a Form proceed as follows:
  1. Create a Form and check Prefill Contact Data (App: Content Studio).
  2. Select Download Form Source Code (HTML), Download JavaScript (JS), and Download Style Sheet (CSS). Store all files on your local device. They have still to be modified.
  3. In your Form, now enter the Current URL (e.g. http://mylandingpage.com), where your Form will be deployed.
  4. Create a Communication User (e.g. COMM_USER_LANDINGPAGE) (App: Maintain Communication Users).
  5. Create a Communication System (e.g. LANDINGPAGE) with Host = Current URL and Inbound Communication User = COMM_USER_LANDINGPAGE. (App: Communication Systems)
  6. Create Communication Arrangement for Communication Scenario "SAP_COM_0023" (App: Communication Arrangements).
  7. HTML: (e.g. myform.html)
    a) Rename file into index.html.
    b) Adjust path ./sapContentPage.css and ./sapContentPage.js (if required).
    c) Add <meta http-equiv="Content-Type" content="utf-8"> to the HTML-header.
  8. PHP: (e.g. index.php)
    a) Store attached TXT file on your device.
    b) Change filename from index.txt into index.php.
    b) Adjust line 17 (BASE_PATH) and 34 (CREDENTIALS). Base Path is your SAP
    Marketing Cloud URL, while Credentials are taken from Step 4.
  9. JS: (e.g. sapContentPage.js)
    a) In line 7 (BasePath), replace the expression /sap/opu/odata/sap/CUAN_CONTENT_PAGE_RESULT_SRV/
    by ./index.php.
    b) In line 8 (ResultHeaderPath), replace the expression
    ResultHeadersPath: "ResultHeaders"
    by ResultHeadersPath: "".
  10. CSS: (e.g. sapContentPage.css)
    a) Adjust content (if required).
  11. Upload and deploy your Form on your Web Server.
  12. Scenario 1 (New Contact): Navigate to your Landing Page, enter Data and select Send Button on your Landing Page to create a new contact (including Permissions & Subscriptions).
  13. Scenario 2 (Update Contact): Create Segmentation Model, Target Group, Email (with Link of Type "Landing Page", Landing Page "myform", and check Outbound ID). Then create and start an Email Campaign. Contact get the Email, select the link and arrives on the Landing Page with prefilled personal data. Contact can change values, select "Send" and data will be updated in Marketing Cloud. Also Permissions and Subscriptions may be changed (if such options are contained in the form).

This instruction has been provided by SAP during one of my SAP incidents 2 years ago. I cannot guarantee that everything is up to date, but I can guarantee that it still works (the setup has been checked 1 week before).

Good Luck!

Best regards,

Denny

Attachment: index.txt

Arne_Manthey
Advisor
Advisor
0 Kudos

Hi,

first of all, it is irrelevant if you add a URL parameter like 'E-mail=XXXX%40gmail.com'. We don't use any URL parameters for personalisation except the parameter 'sap-outbound-id'. Also that outbound ID should be filled automatically in the email once you have sent it via an email campaign. There is a flag in each link which is set by default called 'Outbound ID for Consuming App'.

If you open that email sent by this campaign then you should get a personalised landing page.

If not please open a ticket.

Best Regards,

Arne (Product Manager)

former_member576423
Participant
0 Kudos

arne.manthey :

Consider a scenario - where i have send an email to the customer. In the Email there is a landing page link which has fields such as Email Address and different interaction types.

As a customer, i click on an email, and then i click on the landing page, i want to populate the email address as defaulted to which the email was send. So say, in the email address field, the email of the customer should be auto filled( it should fetch from the email received). This is not happening. Any reasons why?

The scenario works well if i enter the email address manually, but as CX perspective customer needs to enter the email address manually which is a strange behaviour.

Arne_Manthey
Advisor
Advisor
0 Kudos

As I already wrote - those fields should be populated if the following conditions apply:

  1. The link is in an email which is sent out by a SAP Marketing Cloud campaign
  2. During the creation of that email you should not have de-selected the flag 'Outbound ID for Consuming App' (Which is active by default)
  3. The form should have the personalisation option active

If all of those conditions apply in your case then please create a ticket!

former_member650085
Discoverer
0 Kudos

Hi Mayank,

We have a similar issue. We have created a landing page with Prefill Contact Data checkbox checked. Although the subscription details are getting maintained for that contact, the entries(first name, last name, email address etc. are not getting prefilled).

Were you able to resolve your issue? Kindly help.

former_member576423
Participant
0 Kudos

Hi pooja_maru01 , No, do you have any answer. Kindly post.