Please I need help jumping this huddle. I am use to seeing a lot of warning in my Open Editor screen due to the line break in the plugin codes but now I get an Error which is now preventing me from compiling the library.
Noticed this since the outage yesterday.. How do I save my library, I tried to remove line breaks from the plugin codes but still struggling to save.
Please help as i have a go-live looming
Solved! Go to Solution.
Views
Replies
Total Likes
so i now found solutions. Here were two things in play:
- first of all we need the comment mention by @keeTee to be able to save and compile again in the newest version of the custom code editor and preminified code like AppM. thx
- the second thing is how it differently behaves when calling functions that are not defined yet(using hoisting) . Until a few days it was possible to access s_gi function before defining it in the custom code editor for AppM. s_gi function (and other AppM parts) just needed to be in the same custom code instance. Now this is not longer possible and the call of the s_gi should be done after all AppM-Lib-functions are sequentially defined...
old way:
s_gi('reportsuite');
function s_gi(r){...}
new way:
function AppMeasurement(r){....}
...
function s_gi(r){....}
s_gi('reportsuite');
why this happening? only adobe knows what they changed in the background to change the behavior how javascript usually allows functions to be called before defining.
Views
Replies
Total Likes
It would probably help to share which AppMeasurement version and which plugin and version you are using.
Views
Replies
Total Likes
Appmeasurement version g.version = "2.22.0"
and getTimeparting Plugin Version6.3 - copied from
Views
Replies
Total Likes
Hi Adobe Team,
We also have this problem with Custom Code Editor in the Adobe Analytics Extension. We try to enter the most recent AppM from Code Center there but saving and compiling is impossible.
Also when updating to the newest version of the extension the old already existing AppM 2.22.0 was recompiled but now doesn't work any more as the code is corrupted!
This needs to be fixed immediatelly so we can develop further with Adobe Launch!
Thanks!
KR
Marc
Hi Marc, not sure if this will help your situation but found that adding this comment /*jshint maxerr: 100000 */ at the top of custom codes that encounter this error unblock the save in most cases. Tip from Adobe support..
This helped me
thanks for the tip. with it saving and building works but the built AppM Code throws now error messages in console and as the compiler changes the pre-minified AppM.. so no s_gi command, no s-object no analytics...:-(
Views
Replies
Total Likes
so i now found solutions. Here were two things in play:
- first of all we need the comment mention by @keeTee to be able to save and compile again in the newest version of the custom code editor and preminified code like AppM. thx
- the second thing is how it differently behaves when calling functions that are not defined yet(using hoisting) . Until a few days it was possible to access s_gi function before defining it in the custom code editor for AppM. s_gi function (and other AppM parts) just needed to be in the same custom code instance. Now this is not longer possible and the call of the s_gi should be done after all AppM-Lib-functions are sequentially defined...
old way:
s_gi('reportsuite');
function s_gi(r){...}
new way:
function AppMeasurement(r){....}
...
function s_gi(r){....}
s_gi('reportsuite');
why this happening? only adobe knows what they changed in the background to change the behavior how javascript usually allows functions to be called before defining.
Views
Replies
Total Likes
You should also consider using the Common Analytics Plugins extension to manage your plugins with less code.
Views
Replies
Total Likes
sorry this is no option for us. just please fix the bug. i will now open a ticket...
Views
Replies
Total Likes
The bug should be fixed as of late last week.
Hi @marctergo got an update from Adobe support that the bug has been fixed.
Good Luck
thx for the information
Views
Replies
Total Likes