Expand my Community achievements bar.

SOLVED

Adobe Target Views and Single Page Applications

Avatar

Level 2

Hi All,

at.js added to the site

Some lines of code  added in the library footer code has mentioned as mentioned in the link - https://docs.adobe.com/content/help/en/target-learn/tutorials/implementation/implement-atjs-20-in-a-...

IN the Launch one of the rule- adobe.target.triggerView(viewName); has added

IN the network, I can able to see the delivery request , But viewName are not available , I don’t see the views in the prefetch.

To get the viewName , Do we need to add the logic’s inside the code base of the Mobile  site is required?

Or library footer code will help us to generate the views.

Can you please provide the steps in order to get the view name in the vec for Spa using launch with the Angular

Thanks In Advance

Regards,

Pradeep

1 Accepted Solution

Avatar

Correct answer by
Level 2

Hi pradeepr65740266​,

               Consider the scenario, we have a home page and a next button.

               For home page trigger view name is home and after clicking next button a new content gets loaded then trigger view for this content will be step2.

              In launch create a rule to load target and fire target for at.js 2.2.0 and then add a custom action trigger for home page load and give a unique name to the trigger view.

1851149_pastedImage_3.png

     In custom code :

1851148_pastedImage_2.png

Now Load the page in target VEC in the modification tab you can see the current view as homeView and click next button you will get current view as step2.

According to the documentation https://docs.adobe.com/content/help/en/target-learn/tutorials/implementation/implement-atj s-20-in-a-single-page-application.html, they are using the trigger view function based on the url change.

Thanks,

Arun Kumaran

View solution in original post

3 Replies

Avatar

Correct answer by
Level 2

Hi pradeepr65740266​,

               Consider the scenario, we have a home page and a next button.

               For home page trigger view name is home and after clicking next button a new content gets loaded then trigger view for this content will be step2.

              In launch create a rule to load target and fire target for at.js 2.2.0 and then add a custom action trigger for home page load and give a unique name to the trigger view.

1851149_pastedImage_3.png

     In custom code :

1851148_pastedImage_2.png

Now Load the page in target VEC in the modification tab you can see the current view as homeView and click next button you will get current view as step2.

According to the documentation https://docs.adobe.com/content/help/en/target-learn/tutorials/implementation/implement-atj s-20-in-a-single-page-application.html, they are using the trigger view function based on the url change.

Thanks,

Arun Kumaran

Avatar

Administrator

Hi @pradeepr6574026,

 

Our next Adobe Target Skill Builder Webinar is right around the corner on May 5th, and will be presented by Adobe Target Product Management on migrating Adobe Target’s mbox.js to At.js. Check out this community discussion to register today. Hope you can make it!
 
Warmly,
Amelia