You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: tracker.rb
    path of file: ./repos/multiwoven/server/lib/script_vault
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module ScriptVault

    
    def _track_event(event_name, properties = {})
      return if Rails.env.test?

      metadata = { distinct_id: current_user.unique_id, insert_id: SecureRandom.uuid,
                   email: current_user.email, name: current_user.name,
                   organization_name: current_organization.name, workspace_name: current_workspace.name }
      event_data = {
        event_name:,
        properties: properties.merge(metadata),
        organization_id: current_organization.id,
        workspace_id: current_workspace.id,
        user_id: current_user.id
      }

      external_event_data = event_data.dup
      dispatch_details(external_event_data)
    rescue StandardError
      Rails.logger.error "Failed to transmit data: #{e.message}"
    end