學習筆記-6

Git

VS Code Git Graph 的 drop 跟 git reset 的比較

應該是同一種東西~ 會把選取的commit刪除,並且並且還原檔案,這正是這兩者與undo的不同之處(undo 會將檔案保留commit前的狀態,所以會跟最新的commit比較,可以直接推新的commit)。雖然我現在想要undo,但是短時間找不到方法。

我應該要將 .gitignore 加進 .gitignore 裡嗎?

簡答:不該!(來源)
詳答(冗答?) by GPT:

No, you should not include .gitignore in the .gitignore file itself.
  1. Sharing Ignoring Rules: The .gitignore file contains rules for ignoring certain files and directories in your Git repository (like build outputs, temporary files, or system-specific files). By tracking this file in Git, you ensure that every contributor to the project has the same set of ignore rules, which helps in maintaining consistency.
  2. Collaborative Maintenance: Including .gitignore in your repository allows team members to propose or modify ignore rules collaboratively. This is particularly important in projects where new tools, dependencies, or build processes might introduce new files that should be ignored.
  3. Project Standardization: When new contributors clone the repository, they automatically receive the ignore rules. This prevents accidental commits of unwanted files and helps new team members adhere to the project's standards without having to configure anything manually.
  4. Transparency and Clarity: A tracked .gitignore file provides clarity about what files are being ignored and why. This transparency is valuable for both new and existing team members and can be crucial for troubleshooting and understanding the project structure.
  5. Best Practices: It's a widely accepted best practice in software development to include .gitignore in your repository. This ensures that all necessary configurations for the project are version-controlled and available to every member of the team. 

Google

GA4不能將串接BigQuery之前的資料匯到BQ

好像有寫過但反正我忘了就一直寫到記得...現在仍不行將GA4歷史資料已 raw data 格式(即當下匯入的schema)匯入到BQ(來源),線上的付費方案應該是用API達成(來源),因為表格不同。

Google signals removed from the reporting 

以下是Google寄來的信
We’re reaching out to inform you that we’ll be making changes to how Google Analytics 4 measures users across devices and platforms. Google signals will be removed from the reporting identity on February 12, 2024. This change will apply to all of your Google Analytics 4 properties and will only affect reporting features. Google Analytics will still collect Google signals, when enabled, to be used in demographics and interests reporting. Google signals will also still support audience and conversion use cases, like remarketing and conversion optimization in linked Google advertising products.

You can preview how this change will impact your Google Analytics 4 reporting now by disabling the “Include Google signals in reporting identity” option for any of your properties in the “Admin” page under Property settings > Data collection and modification > Data collection > Google signals data collection.

同事分享了這個文章 (lovesdata),我照著試了一家客戶,完全無影響。 

參與度的相關介紹

  • 這篇文章在教各種計算「有參與的工作階段(sessions with engagement)」方法,不知哪來的資料,似乎有點道理。(來源
  • 這篇文章在說 『What’s “engaged_session_event”』,一樣找不到官方解釋,只能信其有。(來源

第一次使用 Google Merchant Center

某天在GSC晃ㄚ晃,跳提示說可以串接,看起來很吸引人我就按了!串接後產品資料直接被引入,但明明沒有設定structured data,不知道怎麼進去的。搞了半天,跟我說台灣不適用...雖然這個政策以前就知道,但還是覺得白忙一場。
好吸引人

好挖苦人

其他主題

使用Markdown做出收闔效果 (在HackMD)

我常用的筆記軟體是 HackMD,比Notion簡單快速許多,但是沒有Notion的Toggle 功能。找到這篇文章利用HTML的輔助來達成。限制是其Toggle 本身如果加上Heading Tag,則會跑版(已經嘗試文章中留言區的各種解法)。比較好的解套是在Toggle 外面直接用Markdown做出標題。(來源)

EasyStore的轉址功能

照著官方文檔試了好久都不成功,客服也如往常地無法解決問題(甚至不回...)試了幾次發現,要轉址的前提是「該頁面已經失效」。所以如果要站內轉址,只要設定完後把原本的頁面關閉(改為未發佈)即可。
另外要注意,轉指路徑須適用encode的版本,例如說以"/products/%E5%8D%81%E4%B8%89%E6%BA%9D%E9%9D%A2%E7%A3%9A"來取代"/products/十三溝面磚",而抵達頁則無此限制。
也不要忘了重複頁面的問題,例如筆者不知道因為甚麼功能,所有產品除了有如"/products/十三溝面磚"的頁面之外,同時會產生"/collections/feature-on-homepage/products/十三溝面磚"頁面。


札記

這次聊到 Markdown,今天剛好發現FB Messenger 也開始用 Markdown 語法,害我現在不能打 > < 裝可ㄞ了。好氣 ˋ ˊ


頁面創建時間:2023.11.14
最後更新時間:2023.12.26

留言

這個網誌中的熱門文章

如何在BigQuery內呈現類似舊版GA的事件表格

學習紀錄 - 1

面試經驗 - 2