I wanted to fire an image request using JAVA appmeasurement but unable to do so.
1. Jar files has been imported
2. Referred to JAVA appmeasurement document from the code manager and also bumped on to this https://forums.adobe.com/thread/2329798
3. Here's how the code looks like
AppMeasurement s = new AppMeasurement();
//Setup application config variables
s.account = "rsid-value added";
s.pageName = "hard-coded string added";
s.prop25 = "hard-coded string added";
s.sendFromServer = true;
s.trackingServer ="tracking server-value added";
s.trackingServerSecure = "secured tracking server-value added";
No error anywhere but no image request firing and there is no reporting data being received as well.
4. Used Httpfox and Chrome dev console to debug
Looking forward for a fix or an alternate solution
Thanks in advance!
Thanks for replying.
To answer your question, yes it is a server-side implementation.
And s.sendFromServer has got the correct value.
Do you think that a firewall has to do anything in this regard
Certainly a possibility. Another thing you might want to check is to make sure the code is running. Typically if s.track() is called, it should be sending data. If you're able to add some debug log code right above/below the track function, we can validate that it's running. If you don't get the debug log code, then we have a better idea of where the issue is. If you do see the debug text in the console, then it's a much higher chance to be firewall related.
Yeah. That was a firewall issue indeed. And yes this issue was solved by curating the adobe image request right on the page itself by dynamically populating all the variables with values from the backend.