My company just redid their checkout process and with it we redid the web interface for looking at and tracking our orders. Well on the new page we want to integrate the info from the Visitor Profile widget into it. So I'm starting small and just trying to include the entire widget onto our site and it's not working. I copied the code from the widgets page for the iframe and at the end of the src I added the visitorId variable. What I end up seeing is the visitor profile of the most recent visitor to our site and not the visitor I requested. I can't figure out what's going on. And sometimes I get this error:
Key "lastVisits" for array with keys "" does not exist in "@Live/getVisitorProfilePopup.twig" at line 2
Here is the code I'm using when I get the above error:
<div id="widgetIframe"><iframe width="100%" height="2350" src="http://mywebsite.com/piwik/index.php?module=Widgetize&token_auth=MY_token_auth_goes_here&action=iframe&widget=1&moduleToWidgetize=Live&actionToWidgetize=getVisitorProfilePopup&idSite=1&period=day&date=today&disableLink=1&widget=1&visitorId=98dc265bcda65f19" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe></div>
I have everything hardcoded in for testing but the date and visitorId will be added via variable in the end.
Key "lastVisits" for array with keys "" does not exist in "@Live/getVisitorProfilePopup.twig" at line 2
Here is the code I'm using when I get the above error:
<div id="widgetIframe"><iframe width="100%" height="2350" src="http://mywebsite.com/piwik/index.php?module=Widgetize&token_auth=MY_token_auth_goes_here&action=iframe&widget=1&moduleToWidgetize=Live&actionToWidgetize=getVisitorProfilePopup&idSite=1&period=day&date=today&disableLink=1&widget=1&visitorId=98dc265bcda65f19" scrolling="no" frameborder="0" marginheight="0" marginwidth="0"></iframe></div>
I have everything hardcoded in for testing but the date and visitorId will be added via variable in the end.