Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

AEM - issues with Campaign Standard Forms

Avatar

Avatar
Validate 1
Level 2
jimzau
Level 2

Like

1 like

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
jimzau
Level 2

Like

1 like

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
jimzau
Level 2

06-08-2018

Hello,

I am having 2 issues currently on AEM 6.4 when trying to integrate with Adobe Campaign Standard.

Issue 1:

There is no Adobe Campaign Profile page template available (I can't see where I can make this template available either). And the documentation I am following is : Creating Adobe Campaign Forms in AEM

chlimage_1.png

Issue 2:

Looking at the Adobe Campaign Components documentation, the dialog for my Adobe Campaign Form components have the mapping field disabled:

Screen Shot 2018-08-06 at 11.21.51 AM.png

I have searched through the forums, however the question that was raised did not get answered:

Issue while connecting AEM with Campaign Manager

Please help.

Thanks,

James

Replies

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 likes

Total Posts

12,671 posts

Correct Reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

07-08-2018

There are a few community pieces of community content that can help you:

An AEM/Campaign article -- Adobe Experience Manager Help | Integrating Adobe Experience Manager and Adobe Campaign Standard to ...

An Ask the AEM Community Experts - Scott's Digital Community: Ask the AEM Community Expert Nov Session: Best Practices for using Experi...

Avatar

Avatar
Give Back 5
Level 2
varunmitra
Level 2

Likes

8 likes

Total Posts

31 posts

Correct Reply

4 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 1
Boost 5
View profile

Avatar
Give Back 5
Level 2
varunmitra
Level 2

Likes

8 likes

Total Posts

31 posts

Correct Reply

4 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back
Ignite 1
Boost 5
View profile
varunmitra
Level 2

07-08-2018

Hi James,

In AEM 6.4, there is no example AEM-Campaign Form Template.

However, it's very easy to create your own.

Steps:

1. Correct resourceSuperType

Make sure the page-component inherits from mcm/campaign/components/profile.
This is required for the servlets to get and save info

Screen Shot 2015-11-01 at 12.54.26 PM.png

2. ContextHub-settings

Make sure the following meta-tag is located in the <head>

<meta id="campaignContextHub" data-register="true" />

3. Campaign properties

The jcr:content node must have the following properties

acMapping -> "mapRecipient" (v6/v7) or "profile" (acs)

acTemplateId -> mail

Screen Shot 2015-11-01 at 12.55.17 PM.png

4. public example

Here a link to a example on a public-repo: https://github.com/Adobe-Marketing-Cloud/aem-adobecampaign-forms-sample

I hope this helps.

Regards

Varun mitra

Avatar

Avatar
Validate 1
Level 2
jimzau
Level 2

Like

1 like

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
jimzau
Level 2

Like

1 like

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
jimzau
Level 2

07-08-2018

Hi Varun,

Thanks for your reply, I have tried to create a page component and inherit from mcm/campaign/components/profile as per your instructions, however I cannot edit the template to allow components to be added into the page.

Upon further investigation, I see that mcm/campaign/components/profile inherits from foundation/components/page, which is the older version of the page component:

Screen Shot 2018-08-08 at 11.58.36 AM.png

In AEM 6.4, the page component we are inheriting is core/wcm/components/page/v2/page and the page templates resides under /conf/<my-site>/settings/wcm/templates - which I think it is not compatible with the old page component.

After digging deeper, I think I just need to allow CTA-Lead-Form component category to continue the steps in Creating Adobe Campaign Forms in AEM .

The only remaining issue I am having is the Campaign Form components' dialog has the mapping field disabled:

Screen Shot 2018-08-06 at 11.21.51 AM.png

And this is my page jcr:content node properties:

Screen Shot 2018-08-08 at 12.23.33 PM.png

I have already checked out the Git sample project, but the structure seems to be in the older version of AEM...

Would you please kindly provide any pointers as to how to get this work in AEM 6.4?

Thanks,

James

Avatar

Avatar
Give Back 3
Employee
jazhou
Employee

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Give Back 3
Give Back
View profile

Avatar
Give Back 3
Employee
jazhou
Employee

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Give Back 3
Give Back
View profile
jazhou
Employee

09-08-2018

Hi James,

If you have access to the system console, try to turn on the debug log for com.adobe.cq.mcm.campaign. In your case, you have to check if your campaign server is returning data for two jssp: amcGetDeliveryMetadata.jssp and amcGetDeliveryTemplate.jssp (you can find the request from the debug log).

Then you have to make sure your contextHub is including the metaData from campaign. To check this, in the chrome console on the page, try "window.top.ContextHub.getAllStores()", you should see "metadata".

Last, I think the value of acMapping should be mapReceipent.

Hope it helps.

R,

James

Avatar

Avatar
Validate 1
Level 2
jimzau
Level 2

Like

1 like

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
jimzau
Level 2

Like

1 like

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
jimzau
Level 2

21-08-2018

Hi jazhou,

How are you doing! Glad to see you respond to my post

Anyway, I have tried your suggestions, and here are the results:

Logging from com.adobe.cq.mcm.campaign:

And window.top.ContextHub.getAllStores() gives me:

Screen Shot 2018-08-22 at 12.53.23 PM.png

I've also updated acMapping to mapRecipient:

Screen Shot 2018-08-22 at 1.00.11 PM.png

But I still can't use the mapping field in the Adobe Campaign component.....

Avatar

Avatar
Give Back 3
Employee
jazhou
Employee

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Give Back 3
Give Back
View profile

Avatar
Give Back 3
Employee
jazhou
Employee

Likes

0 likes

Total Posts

3 posts

Correct Reply

0 solutions
Top badges earned
Give Back 3
Give Back
View profile
jazhou
Employee

21-08-2018

It seems you don't have metadata in your contexthub.

Can you please check if you have done the following in your page?

Make sure the following meta-tag is located in the <head>

<meta id="campaignContextHub" data-register="true" />

Also, try clean your session and login again. The campaign log should have something with amcGetDeliveryMetadata. This is to load the metadata for the template defined in acTemplateId(mail).

Avatar

Avatar
Validate 1
Level 2
jimzau
Level 2

Like

1 like

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
jimzau
Level 2

Like

1 like

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
jimzau
Level 2

21-08-2018

Hi jazhou​,

I've tried to put that meta-tag in the head, however, due to how AEM author works, it is not putting it in the <head> in author mode:

Screen Shot 2018-08-22 at 2.20.25 PM.png

It is under the author mode iframe of the page as per above.

I've even tried to put that meta-tag in the parent page component that my proxyPage inherited from and it is the same.

Since I am trying to author those Campaign components, what else can I do? I've also tried to restart my session, but I still don't see amcGetDeliveryMetadata in the logs (with debug log level).

Avatar

Avatar
Validate 1
Level 2
jimzau
Level 2

Like

1 like

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
jimzau
Level 2

Like

1 like

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
jimzau
Level 2

27-08-2018

Ok, finally have time to type in the solution I have.

Apparently, it is required (hard-coded) to use a page component that is either mcm/campaign/components/profile or a proxy page component from it.

So to get it working, I have to overlay it as /apps/mcm/campaign/components/profile and use my own proxy page component of core/wcm/components/page/v2/page:

/apps/mcm/campaign/components/profile --> /apps/<my-site>/components/structure/page --> core/wcm/components/page/v2/page

In summary, here are the steps to make it work (in 6.4 author):

  • enable CTA-Lead-Form components in template
  • overlay mcm/campaign/components/profile to use core/wcm/components/page/v2/page
  • add page properties of acMapping -> "mapRecipient" and acTemplateId -> "mail"
  • set context hub settings in head: <meta id="campaignContextHub" data-register="true" />

After all that I can see the Adobe Campaign mappings available in the component dialog.

Next is to get it work in Publish...

Avatar

Avatar
Validate 1
Level 2
jimzau
Level 2

Like

1 like

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile

Avatar
Validate 1
Level 2
jimzau
Level 2

Like

1 like

Total Posts

13 posts

Correct Reply

1 solution
Top badges earned
Validate 1
Boost 1
Affirm 1
View profile
jimzau
Level 2

29-08-2018

I have been testing the Campagin form I created in Publisher as per:

https://helpx.adobe.com/experience-manager/6-4/sites/authoring/using/adobe-campaign-forms.html#Testi...

However, I am not able to get the data to be saved to Adobe Campaign Standard.

I have enabled the logs for com.adobe.cq.mcm.campaign as well (passing the PKey of the profile as the encrypted primary key):

  

What is wrong with the setup? Should I be using something else besides PKey for the encrypted primary key?