Replacing add_to_log with event call.
Remove SiteID and PartnerID. Change url to sitename.