a.m. wrote:...
It works fine. "Finish impersonated session" button is there. I presume you accidentally removed it.
Information about impersonated customer is stored [GenericAttribute] table ("ImpersonatedCustomerId" key)
OK, I ran this query:
SELECT Id, EntityId, KeyGroup, [Key], Value, StoreId
FROM GenericAttribute
WHERE ([Key] = 'ImpersonatedCustomerId')
...and removed the key values on the impersonated orders and
now my admin logins work again!!!Now I just need to figure out why the impersonate button does not appear on my order completed page.
About 1 month ago, I added a new plugin for "Google Trusted Store", which has code that appears as widget on order completed page. We were still able to impersonate orders with no problem.
Last week I added this javascript function into my google analytics plugin screen:
(function() {
var _fbq = window._fbq || (window._fbq = []);
if (!_fbq.loaded) {
var fbds = document.createElement('script');
fbds.async = true;
fbds.src = '//connect.facebook.net/en_US/fbds.js';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(fbds, s);
_fbq.loaded = true;
}
_fbq.push(['addPixelId', 'xxx123456789xxx']);
})();
window._fbq = window._fbq || [];
window._fbq.push(['track', 'PixelInitialized', {}]);
The tracking code for facebook and google both work OK, but the button to finish impersonating is no longer displayed.
Can the problem be related?
Also, if I cannot solve the problem with the button...is there another way to end an impersonated session other than editing the key value column in the GenericAttribute database table?