Sending GA dimension without including a pageview

烂漫一生 提交于 2019-12-11 04:58:51

问题


From what I understand, setting a dimension:

ga('set', 'dimension1', 'value');

requires sending the dimension afterwards using:

ga('send', 'pageview');

My problem is that the header file with all my ga codes (including send pageview) loads before the file where I have my dimension. So if I send it again, won't I get two pageviews registered? Is there a way to do an empty send with ga and just send whatever has been set before it, nothing more?

来源:https://stackoverflow.com/questions/41544246/sending-ga-dimension-without-including-a-pageview

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!