Created
November 5, 2017 11:08
-
-
Save mak00s/15d0fed9cb242cc742c65adcccc19d3c to your computer and use it in GitHub Desktop.
キャンペーン用URLパラメータをキレイにする(s_code.js)part 1 of 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// パラメータ名「cid」の部分は適宜変更 | |
s.campaign = getHashQueryParam('cid'); | |
// クエリにも同時対応する場合は以下のように書ける | |
s.campaign = s.getQueryParam('cid') || s.getHashQueryParam('cid'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment