Associate Staging DTM on lower environments

Veera_kandregul

22-05-2017

Hi All,

We are trying to use DTM integration framework to get header and footer code into our websites. We are successful in the integration and now looking into OOTB way to make sure that

1) DEV/Staging/UAT author and publish instances (including PROD author) should use staging header and footer

2) PROD publish instance should use prod header and footer snippets.

 

Can you guys let me know if there is any OOTB way to achieve this, or do i need to do customizations based on runmodes?

Thanks,

Veera

Accepted Solutions (1)

Accepted Solutions (1)

jantzen_belliston-Adobe

Community Manager

25-05-2017

Hi Veera,

I'm sorry we can't provide a better out of the box solution. When Adobe Launch is released, we'll have more options for environments (There will be more than just Staging and Production). Perhaps we may have a better out of the box solution to fit your needs at that point.

If interested, you can keep up with all things Adobe Launch by visiting Adobe.com/go/launchme

 

Thanks,
Jantzen

Answers (5)

Answers (5)

Veera_kandregul

24-05-2017

Thank you Parit and Jantzen,

We already following the said custom approach but want to go away with that as it will work only if DTM team is centralised. Also, those changes needs to be done on every property and that may mean its prone to human error and misses.

Anyway, It seems like there is no OOTB way to exclude lower environments to get PROD DTM scripts without customization. We will try to customize the DTM component /libs/cq/dtm/components/dynamictagmanagement to fix our problem.

 

Thank you for your help.

 

Best Regards:

Veera

jantzen_belliston-Adobe

Community Manager

24-05-2017

Veera,

It definitely looks like you're referring to the integration with AEM. Parit's answer contains a link that might answer your question. If not, we can move this thread over to the AEM community where others using this integration might have some additional info.

Thanks,
Jantzen

Veera_kandregul

23-05-2017

Thanks Jantzen,

I am referring to the recommended integration using /etc/cloudservices/dynamictagmanagement/<DTMconfig> and then using cloud config tab on page properties.

When i looked into implementation code of these integrations, it is checking only if 'author' or 'wcmmode=disabled' but dont have any options to verify/configure the lower environments so that staging header will go into these environments.

 

Below is the snippet from /libs/cq/dtm/components/dynamictagmanagement/dtm_include.jsp

//We use production scripts if we run on a publish instance or the user asked to use these scripts on author instance as well.
        String dtmScriptsTypeToUse = (mode == WCMMode.DISABLED || authorProdInclude) ? "production" : "staging";

 

Can you let me know if there is any OOTB way to get staging header code into lower environments?

jantzen_belliston-Adobe

Community Manager

23-05-2017

Hi Veera,

As far as DTM, the Staging embed code should be used for DEV/Staging/UAT and the Production embed code should be used for PROD. The header code is the only thing that changes, the footer code is the same regardless of which environment you're using.

When you say you set up the integration, are you referring to the AEM integration or which integration are you referring to?

 

Thanks,
Jantzen